예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if (instance == null)
        {
            instance = this;
            return;
        }

        if (LocalPlayer == null)
        {
            return;
        }

        if (startRespawn)
        {
            StartRespawn();
        }

        if (this.LocalPlayer.GetComponent <VVCowBoy>().isMobileInput == false)
        {
            if (Input.GetKeyDown(KeyCode.Escape))
            {
                ToggleLeaveScreen();
            }

            if (Input.GetKey(KeyCode.Tab))
            {
                cpCanvas.SetActive(true);
            }
            else
            {
                cpCanvas.SetActive(false);
            }
        }


        pingrate.text = "Ping : " + PhotonNetwork.GetPing();
    }
예제 #2
0
 void Awake()
 {
     instance = this;
     itemName_pick_by_ListPlayer = new Dictionary <string, List <string> >();
     canvas.SetActive(true);
 }