// public Text text;

    private void Awake()
    {
        if (LobbyGameNetwork.instance != null && LobbyGameNetwork.instance != this)
        {
            Destroy(transform.gameObject);
            return;
        }
        instance = this;
        //DontDestroyOnLoad(transform.gameObject);
    }
Esempio n. 2
0
 private void Awake()
 {
     Instance = this;
     PhotonNetwork.OfflineMode = false;
     PhotonNetwork.GameVersion = "1";
 }