void OnLevelWasLoaded(int level) { if (level == 0) { networkManager = GameObject.Find("Network").GetComponent <NetworkManagerC>(); networkManager.SetupMenuSceneButtons(); } else { networkManager.SetupOtherSceneButtons(); } }
// Use this for initialization void Start() { networkManager = GameObject.Find("Network").GetComponent <NetworkManagerC>(); }