Пример #1
0
    void SetCurrentTurn(GameCoreController.GameTurnState turn)
    {
        if (photonView.IsMine)
        {
            return;
        }

        Debug.Log("Received turn from master client");
        GameCoreController.Instance.CurrentTurn = turn;
    }
Пример #2
0
 public IEnumerator WaitForPickFirstTurn(GameCoreController.GameTurnState turn)
 {
     // Never called by the AI
     return(null);
 }
Пример #3
0
 public IEnumerator WaitForPickFirstTurn(GameCoreController.GameTurnState turn)
 {
     Debug.Log("Sending who goes first");
     photonView.RPC("SetCurrentTurn", RpcTarget.All, turn);
     return(null);
 }
 public void SendFirstTurn(GameCoreController.GameTurnState turn)
 {
     rpcController.SendFirstTurn(turn);
 }
Пример #5
0
 public void SendFirstTurn(GameCoreController.GameTurnState turn)
 {
     // Never called by the AI
 }
Пример #6
0
 public void SendFirstTurn(GameCoreController.GameTurnState turn)
 {
     Debug.Log("Sending who goes first");
     photonView.RPC("SetCurrentTurn", RpcTarget.All, turn);
 }