示例#1
0
 void sayiyaSure()
 {
     if (sinir > 0 && sinir < 3)
     {
         sabitzamanScript.sureOlustur(120, 195);
     }
     else if (sinir == 3)
     {
         sabitzamanScript.sureOlustur(100, 165);
     }
     else if (sinir > 3)
     {
         sabitzamanScript.sureOlustur(30, 70);
     }
 }
示例#2
0
    public void FixedUpdate()
    {
        // for debugging, it's useful to have a few actions tied to keys:
        if (Input.GetKeyUp(KeyCode.L))
        {
            PhotonNetwork.LeaveRoom();
        }
        if (Input.GetKeyUp(KeyCode.C))
        {
            PhotonNetwork.ConnectUsingSettings(null);
            PhotonHandler.StopFallbackSendAckThread();
        }


        if (!PhotonNetwork.inRoom)
        {
            return;
        }
        if (PhotonNetwork.room.PlayerCount == 2)
        {
            if (t)
            {
                mytime.sureOlustur(1, 2);
                Debug.Log(mytime.x);
            }
            t = false;
        }



        if (PhotonNetwork.room.PlayerCount > 1)
        {
            if (this.turnManager.IsOver)
            {
                return;
            }

            /*
             *          // check if we ran out of time, in which case we loose
             *          if (turnEnd<0f && !IsShowingResults)
             *          {
             *                          Debug.Log("Calling OnTurnCompleted with turnEnd ="+turnEnd);
             *                          OnTurnCompleted(-1);
             *                          return;
             *          }
             */
        }
    }