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; } } }