Exemplo n.º 1
0
 void Awake()
 {
     DontDestroyOnLoad(transform.gameObject);
     if (Instance != null)
     {
         Debug.LogError("Multiple instances of SceneSupervisor!");
         Destroy(gameObject);
     }
     Instance    = this;
     this.Client = GameObject.Find("Network").GetComponent <Client>();
 }
Exemplo n.º 2
0
 void Awake()
 {
     DontDestroyOnLoad(transform.gameObject);
     if (Instance != null)
     {
         Debug.LogError("Multiple instances of SceneSupervisor!");
         Destroy(gameObject);
     }
     Instance = this;
     this.Client = GameObject.Find("Network").GetComponent<Client>();
 }