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; }
private void Awake() { onLevelVictory = Harmony.Finder.OnLevelVictory; onLevelFailed = Harmony.Finder.OnLevelFailed; onCampaignFailed = Harmony.Finder.OnCampaignFailed; levelController = Harmony.Finder.LevelController; }
private void InitializeEventChannels() { onHurt = Harmony.Finder.OnHurt; onAttack = Harmony.Finder.OnAttack; onDodge = Harmony.Finder.OnDodge; onUnitMove = Harmony.Finder.OnUnitMove; onUnitDeath = Harmony.Finder.OnUnitDeath; onPlayerUnitLoss = Harmony.Finder.OnPlayerUnitLoss; onLevelVictory = Harmony.Finder.OnLevelVictory; onLevelChange = Harmony.Finder.OnLevelChange; onEndLevelEnter = Harmony.Finder.OnEndLevelEnter; onOverWorldEnter = Harmony.Finder.OnOverWorldEnter; onMainMenuEnter = Harmony.Finder.OnMainMenuEnter; onButtonClick = Harmony.Finder.OnButtonClick; onSFXToggle = Harmony.Finder.OnSFXToggle; onMusicToggle = Harmony.Finder.OnMusicToggle; onMainVolumeChange = Harmony.Finder.OnMainVolumeChange; onMusicVolumeChange = Harmony.Finder.OnMusicVolumeChange; onSFXVolumeChange = Harmony.Finder.OnSFXVolumeChange; }