예제 #1
0
 void Update()
 {
     if (PhotonScriptor.ConnectingScript.informPlayerID() == 1)
     {
         if (WinorLose.InformBluePoint() >= WinorLose.InformRedPoint())
         {
             CannotCgangeText.SetActive(true);
         }
         else
         {
             CannotCgangeText.SetActive(false);
         }
     }
     else
     {
         if (WinorLose.InformBluePoint() <= WinorLose.InformRedPoint())
         {
             CannotCgangeText.SetActive(true);
         }
         else
         {
             CannotCgangeText.SetActive(false);
         }
     }
 }
예제 #2
0
 void Update()
 {
     RedWins  = WinorLose.InformRedPoint();
     BlueWins = WinorLose.InformBluePoint();
     if (PhotonScriptor.ConnectingScript.informPlayerID() == 1)
     {
         NowPoints.text = BlueWins + " - " + RedWins;
     }
     else
     {
         NowPoints.text = RedWins + " - " + BlueWins;
     }
 }
예제 #3
0
 public void AreaSpeedLow()
 {
     if (PhotonScriptor.ConnectingScript.informPlayerID() == 1)
     {
         if (WinorLose.InformRedPoint() > WinorLose.InformBluePoint())
         {
             _photonView.RequestOwnership();
             photonView.RPC(nameof(Low), RpcTarget.All);
         }
     }
     else if (PhotonScriptor.ConnectingScript.informPlayerID() == 2)
     {
         if (WinorLose.InformRedPoint() < WinorLose.InformBluePoint())
         {
             _photonView.RequestOwnership();
             photonView.RPC(nameof(Low), RpcTarget.All);
         }
     }
     else
     {
         Debug.Log("You Cannnot Change State");
     }
 }