Example #1
0
 private void OnTriggerEnter(Collider other)
 {
     _rotationController.MakeRotationGoSlower();
     _eatingController.EatSomething();
     _particlesController.PlayFrozenMushroomsParticles();
     Destroy(this.gameObject);
 }
 private void OnTriggerEnter(Collider other)
 {
     _frozenEffect.TurnOnFrozenEffect(_enemyEffects.TimeOfFrozen);
     _rotationController.MakeRotationGoSlower();
     _eatingController.EatSomething();
     _particlesController.PlayFrozenMushroomsParticles();
     Destroy(this.gameObject);
 }