Frame/Assets/Scripts/Player/PlayerData.cs

22 lines
467 B
C#
Raw Normal View History

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
public PlayerData(string playerName, float jinbei, float hp)
{
this.playerName = playerName;
this.jinbei = jinbei;
this.hp = hp;
}
2024-04-10 16:18:32 +08:00
public void ReturnJinBei(float f)
{
this.jinbei += f;
}
2024-04-03 14:38:44 +08:00
}
}