コード例 #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;
 }
コード例 #2
0
 private void OnLootAxisChanged(Vector2 lookDirection)
 {
     LookAxisSignal.Dispatch(lookDirection);
 }