Ejemplo n.º 1
0
 private void Awake()
 {
     if (onButtonClick == null)
     {
         onButtonClick = Harmony.Finder.OnButtonClick;
     }
 }
Ejemplo 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;
 }