private void OrderCanceled() { StopTimer(); OrderCanceledEvent?.Invoke(this); Destroy(gameObject); _playerReference.LifeLost(); }
public IEnumerator OrderFulFilled() { StopTimer(); PlaySFX("customer_slurp"); _animator.SetTrigger(AnimationVictory); yield return(_delayExitAnimation); OrderFulFilledEvent?.Invoke(this); _playerReference.AddPointsToScore(_points); Destroy(gameObject); }