public void OnClick_PlayerCreate() { string playerName = PlayerName.text.Trim(); if (playerName != string.Empty) { Player player = new Player(playerName); OnClickCreate?.Invoke(player); } else { Player player = new Player("Venet"); OnClickCreate?.Invoke(player); } }
public void OnClick_EnemyCreate() { OnClickCreate?.Invoke(); }