Example #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "local_player")
     {
         WarpGateData.SetTransform(nextTransform);
         WarpGateData.nextSceneName = nextScene;
         nakama.LeaveMatch();
         StartCoroutine(nakama.ClientJoinMatchByMatchId(nextScene));
     }
 }
Example #2
0
    void FinallyLogin(PlayerDataResponse response)
    {
        string nextScene;

        if (response.scene == null)
        {
            nextScene = firstSceneOnNewAccount;
        }
        else
        {
            nextScene = response.scene;
        }
        WarpGateData.nextSceneName = nextScene;
        StartCoroutine(nakama.ClientJoinMatchByMatchId(nextScene));
    }