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 OnMoveAxisChanged(Vector2 moveDirection) { MoveAxisSignal.Dispatch(moveDirection); }