private void OnTriggerEnter(Collider other) { if (other.tag == "local_player") { WarpGateData.SetTransform(nextTransform); WarpGateData.nextSceneName = nextScene; nakama.LeaveMatch(); StartCoroutine(nakama.ClientJoinMatchByMatchId(nextScene)); } }
void FinallyLogin(PlayerDataResponse response) { string nextScene; if (response.scene == null) { nextScene = firstSceneOnNewAccount; } else { nextScene = response.scene; } WarpGateData.nextSceneName = nextScene; StartCoroutine(nakama.ClientJoinMatchByMatchId(nextScene)); }