Frame/Assets/Scripts/Dinosaurs/Player/PlayerData.cs

22 lines
467 B
C#

namespace Game.Player
{
[System.Serializable]
public class PlayerData
{
public string playerName;
public float jinbei;
public float hp;
public PlayerData(string playerName, float jinbei, float hp)
{
this.playerName = playerName;
this.jinbei = jinbei;
this.hp = hp;
}
public void ReturnJinBei(float f)
{
this.jinbei += f;
}
}
}