Example #1
0
 public override void OnRemove()
 {
     MoveAxisSignal.RemoveListener(OnMoveAxisSignal);
     LookAxisSignal.RemoveListener(OnLookAxisSignal);
     FireButtonSignal.RemoveListener(OnFireButtonSignal);
     UltimateButtonSignal.RemoveListener(OnUltimateButtonSignal);
     EnemyKilledSignal.RemoveListener(OnEnemyKilled);
     View.PlayerKilled  -= OnPlayerKilled;
     View.UltimateUsed  -= OnUltimateUsed;
     View.HealthChanged -= OnHealthchanged;
     View.EnergyChanged -= OnEnergyChanged;
 }
Example #2
0
 private void OnMoveAxisChanged(Vector2 moveDirection)
 {
     MoveAxisSignal.Dispatch(moveDirection);
 }