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; }
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; }