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>(); }
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>(); }