void OnPhotonInstantiate(PhotonMessageInfo info) { if (roomTimeManager.isPauseState()) { DestroyPlayer(true); } else { RespawnPlayer(); } }
void Update() { if (!roomTimeManager.isPauseState()) { canvas.enabled = PhotonNetwork.inRoom && Input.GetKey(KeyCode.V); } }