Esempio n. 1
0
 public void UpdateUIPanels(RPSType playerOneMove, RPSType playerTwoMove, string msg, bool hasAuthority)
 {
     gameOver.SetActive(true);
     playerActions.SetActive(false);
     txt_msg.SetText(msg);
     if (hasAuthority)
     {
         txt_playerMove.text  = playerOneMove.ToString();
         txt_oponentMove.text = playerTwoMove.ToString();
         Debug.Log("from if");
     }
     else
     {
         Debug.Log("else");
         txt_playerMove.text  = playerTwoMove.ToString();
         txt_oponentMove.text = playerOneMove.ToString();
     }
 }
Esempio n. 2
0
 public void CmdSetMove(RPSType move)
 {
     playerMove = move;
     GameNetworkManager.singleton.CalculateResult();
 }
Esempio n. 3
0
 public void RpcUpdateUI(RPSType playerOneMove, RPSType playerTwoMove, string msg, bool authFlag)
 {
     GameplayUIManager.Instance.UpdateUIPanels(playerOneMove, playerTwoMove, msg, authFlag);
 }
Esempio n. 4
0
 public override void OnStartServer()
 {
     base.OnStartServer();
     playerMove = RPSType.None;
 }