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