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; }
private void Awake() { navigator = Harmony.Finder.Navigator; mainMenuCanvas = GetComponent <Canvas>(); onMainMenuEnter = Harmony.Finder.OnMainMenuEnter; }