Пример #1
0
 private void Awake()
 {
     yDirection  = startingYDirection;
     onHurt      = Harmony.Finder.OnHurt;
     onDodge     = Harmony.Finder.OnDodge;
     onUnitMove  = Harmony.Finder.OnUnitMove;
     onUnitDeath = Harmony.Finder.OnUnitDeath;
     if (transformToPoint != null)
     {
         transformToPointPosition = transformToPoint.position;
     }
 }
Пример #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;
 }