public void SetPlayer(Player player) { currentPlayer = player; StartGameEventData data = new StartGameEventData(); data.currentPlayer = currentPlayer; EventDispatcher.TriggerEvent(EventEnum.StartGame, data); }
private void StartGame(StartGameEventData data) { PlayerUI.Player = data.currentPlayer; User = data.currentPlayer; }