Ejemplo n.º 1
0
    void SetCurrentTurn(GameCoreController.GameTurnState turn)
    {
        if (photonView.IsMine)
        {
            return;
        }

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