private void Awake()
 {
     navigator           = Harmony.Finder.Navigator;
     saveController      = Harmony.Finder.SaveController;
     saveSelectionScreen = GetComponent <Canvas>();
     gameSettings        = Harmony.Finder.GameSettings;
 }
Exemple #2
0
 protected virtual void Awake()
 {
     onLevelVictory      = Harmony.Finder.OnLevelVictory;
     onLevelFailed       = Harmony.Finder.OnLevelFailed;
     onLevelChange       = Harmony.Finder.OnLevelChange;
     onCampaignFailed    = Harmony.Finder.OnCampaignFailed;
     levelLoader         = Harmony.Finder.LevelLoader;
     saveController      = Harmony.Finder.SaveController;
     gameController      = Harmony.Finder.GameController;
     gameSettings        = Harmony.Finder.GameSettings;
     grid                = Harmony.Finder.GridController;
     cinematicController = GetComponent <CinematicController>();
     computerPlayer      = new ComputerPlayer(Harmony.Finder.GameController.ChoiceRange);
     humanPlayer         = new HumanPlayer();
     levelName           = gameObject.scene.name;
     endGameCredits      = GetComponentInChildren <EndGameCreditsController>();
     uiController        = Harmony.Finder.UIController;
     if (protagonistGameObject == null)
     {
         Debug.LogError("Missing ProtagonistGameObject in LevelController!");
     }
     if (endGameCredits != null)
     {
         endGameCredits.gameObject.SetActive(false);
     }
     coroutineStarter      = Harmony.Finder.CoroutineStarter;
     enemyRangeController  = Harmony.Finder.EnemyRangeController;
     achievementController = Harmony.Finder.AchievementController;
 }
Exemple #3
0
 private void Awake()
 {
     gameSettings   = Harmony.Finder.GameSettings;
     saveController = Harmony.Finder.SaveController;
     achievementUnlockedText.text = gameSettings.AchievementUnlockedString;
     coroutineStarter             = Harmony.Finder.CoroutineStarter;
 }
 private void Awake()
 {
     gameSettings   = Harmony.Finder.GameSettings;
     navigator      = Harmony.Finder.Navigator;
     saveController = Harmony.Finder.SaveController;
     loadGameScreen = GetComponent <Canvas>();
     levelLoader    = Harmony.Finder.LevelLoader;
     gameController = Harmony.Finder.GameController;
 }
 private void Awake()
 {
     levelLoader            = Harmony.Finder.LevelLoader;
     gameSettings           = Harmony.Finder.GameSettings;
     navigator              = Harmony.Finder.Navigator;
     saveController         = Harmony.Finder.SaveController;
     newGameScreen          = GetComponent <Canvas>();
     saveSlotSelectedNumber = 0;
     gameController         = Harmony.Finder.GameController;
 }
Exemple #6
0
 private void Awake()
 {
     navigator           = Harmony.Finder.Navigator;
     saveController      = Harmony.Finder.SaveController;
     optionsScreen       = GetComponent <Canvas>();
     onSfxToggle         = Harmony.Finder.OnSFXToggle;
     onMusicToggle       = Harmony.Finder.OnMusicToggle;
     onMainVolumeChange  = Harmony.Finder.OnMainVolumeChange;
     onMusicVolumeChange = Harmony.Finder.OnMusicVolumeChange;
     onSfxVolumeChange   = Harmony.Finder.OnSFXVolumeChange;
 }
Exemple #7
0
        DataShape LoadLevel(string levelName)
        {
            string    levelData;
            SaveToTxt saveToTxt = new SaveToTxt();

            saveToTxt.ReadString(levelName, out levelData);
            PointSave pointSave = new PointSave();

            pointSave.InitObject();
            SaveController.Load <PointSave>(ref pointSave, levelData);
            DataShape shape = new DataShape();

            shape.sprite    = Resources.Load <Sprite>("Shape/" + pointSave.nameImage);
            shape.pointData = pointSave.saveData;
            return(shape);
        }
 void Awake()
 {
     Instance = this;
 }