Exemplo n.º 1
0
 void LeaveGame()
 {
     PhotonNetwork.LeaveRoom();
     ContainerManager.CleanUp();
     Destroy(PickUpCollection.Instance.gameObject);
     foreach (var obj in _cleanUpList)
     {
         Destroy(obj);
     }
     Destroy(this.gameObject);
     SceneManager.LoadScene("Main"); //TODO don't hardcode
 }