コード例 #1
0
 public void RpcSetTurn()
 {
     isOurTurn = !isOurTurn;
     Debug.Log("isOurTurn:  ----   " + isOurTurn);
     turn_button.gameObject.SetActive(isOurTurn);
     if (isOurTurn)
     {
         //  playerController = My_PlayerController.localPlayer;
         // playerController.CmdDrawCard(1);
         NetworkIdentity     netID = NetworkClient.connection.identity;
         My_PlayerController p     = netID.GetComponent <My_PlayerController>();
         p.CmdDrawCard(1);
         p.addMana();
     }
 }