Ejemplo n.º 1
0
 public override void OnOpen()
 {
     if (seedField)
     {
         seedField.text = new Random().Next(100000).ToString();
     }
     worldManager = menuManager.GetComponent <WorldManager>();
     gameManager  = menuManager.GetComponent <GameManager>();
     mainMenu     = (Menu_Main)menuManager.GetMenu("Main Menu");
 }
Ejemplo n.º 2
0
 public override void OnOpen()
 {
     gameManager        = menuManager.GetComponent <GameManager>();
     persistanceManager = menuManager.GetComponent <PersistanceManager>();
     mainMenu           = (Menu_Main)menuManager.GetMenu("Main Menu");
     if (persistanceManager)
     {
         saveFileNames = persistanceManager.GetSaveFileNames();
         saveGameList.Clear();
         for (int i = 0; i < saveFileNames.Length; i++)
         {
             saveGameList.Add(saveFileNames[i]);
         }
     }
 }