コード例 #1
0
    public void SetPlayer(Player player)
    {
        currentPlayer = player;
        StartGameEventData data = new StartGameEventData();

        data.currentPlayer = currentPlayer;
        EventDispatcher.TriggerEvent(EventEnum.StartGame, data);
    }
コード例 #2
0
ファイル: UIManager.cs プロジェクト: ArshartCloud/LowStone
 private void StartGame(StartGameEventData data)
 {
     PlayerUI.Player = data.currentPlayer;
     User            = data.currentPlayer;
 }