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; }
private void OnLootAxisChanged(Vector2 lookDirection) { LookAxisSignal.Dispatch(lookDirection); }