Ejemplo n.º 1
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]);
         }
     }
 }