// 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(); }
void Awake() { instance = this; itemName_pick_by_ListPlayer = new Dictionary <string, List <string> >(); canvas.SetActive(true); }