public void PlayerLeftRoom() { Time.timeScale = 0f; txtMessageNotify.text = PlayerNetworkController.Instance.user.name + " đã rời phòng."; NotifyPanel.SetActive(true); Destroy(PlayerNetworkController.Instance.gameObject); }
public void JoinRoomFailed(byte status) { if (status == 1) { txtMessageNotify.text = "Phòng đã đầy"; } else if (status == 2) { txtMessageNotify.text = "Phòng không tồn tại"; } NotifyPanel.SetActive(true); }
public void RegisterPlayerFailed() { txtMessageNotify.text = "Tên người chơi đã tồn tại"; NotifyPanel.SetActive(true); }
public void HideNotifyPanel() { Time.timeScale = 1f; NotifyPanel.SetActive(false); }