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

21 lines
418 B
C#

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