private void OnTriggerEnter(Collider other) { _rotationController.MakeRotationGoSlower(); _eatingController.EatSomething(); _particlesController.PlayFrozenMushroomsParticles(); Destroy(this.gameObject); }
private void OnTriggerEnter(Collider other) { _staminaController.MakeStaminaGoOffFaster(); _eatingController.EatSomething(); _particlesController.PlayAcidMushroomsParticles(); Destroy(this.gameObject); }
private void OnTriggerEnter(Collider other) { _frozenEffect.TurnOnFrozenEffect(_enemyEffects.TimeOfFrozen); _rotationController.MakeRotationGoSlower(); _eatingController.EatSomething(); _particlesController.PlayFrozenMushroomsParticles(); Destroy(this.gameObject); }
private void OnTriggerEnter(Collider other) { if (_hasShield) { _hasShield = false; Shield.SetActive(false); _eatingController.EatSomething(); _particlesController.PlayArmoredBugParticles(); } else { _particlesController.PlayArmoredBugParticles(); _eatingController.EatBug(this.gameObject); } }