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