2024-04-03 14:38:44 +08:00
|
|
|
|
namespace Game.Player
|
|
|
|
|
{
|
2024-04-06 11:59:18 +08:00
|
|
|
|
[System.Serializable]
|
2024-04-03 14:38:44 +08:00
|
|
|
|
public class PlayerData
|
|
|
|
|
{
|
2024-04-03 17:46:56 +08:00
|
|
|
|
public string playerName;
|
2024-04-03 14:38:44 +08:00
|
|
|
|
public float jinbei;
|
|
|
|
|
public float hp;
|
2024-04-06 11:59:18 +08:00
|
|
|
|
|
2024-05-05 17:02:33 +08:00
|
|
|
|
public PlayerData(string playerName, float hp)
|
2024-04-06 11:59:18 +08:00
|
|
|
|
{
|
|
|
|
|
this.playerName = playerName;
|
|
|
|
|
this.hp = hp;
|
|
|
|
|
}
|
2024-04-10 16:18:32 +08:00
|
|
|
|
|
2024-05-05 17:02:33 +08:00
|
|
|
|
public void RefreshMoney(float f)
|
2024-04-10 16:18:32 +08:00
|
|
|
|
{
|
2024-05-05 17:02:33 +08:00
|
|
|
|
this.jinbei = f;
|
2024-04-10 16:18:32 +08:00
|
|
|
|
}
|
2024-04-03 14:38:44 +08:00
|
|
|
|
}
|
|
|
|
|
}
|