private void Awake()
 {
     gameSettings     = Harmony.Finder.GameSettings;
     onOverWorldEnter = Harmony.Finder.OnOverWorldEnter;
     levelLoader      = Harmony.Finder.LevelLoader;
     gameController   = Harmony.Finder.GameController;
 }
Exemplo n.º 2
0
 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;
 }