//TO DO: //Set a structure to fill up the end panels. #endregion #region Lvl Management //lvl Set Up public void CreateLvl() { lvl_Index = LoadLvlIndex(); currentLevel = factory.CreateLvl(GetLvlFromListByType(lvlType.normal), lvl_Index); //Getting Lvl from factory currTree.CreateTree(currentLevel, currentLevel.targetsAmount); //Create the propper tree }
public void CreateLvl() { currentLevel = factory.CreateLvl(GetLvlFromListByType(currentGameMode), lvl_Index); //print("Current Tree: " + (currTree != null)); currTree.CreateTree(currentLevel, currentLevel.targetsAmount); //Create the propper tree SerializationManager.instance.SaveLastGameModePlayed(currentGameMode); }