コード例 #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (_hasShield)
     {
         _hasShield = false;
         Shield.SetActive(false);
         _eatingController.EatSomething();
         _particlesController.PlayArmoredBugParticles();
     }
     else
     {
         _particlesController.PlayArmoredBugParticles();
         _eatingController.EatBug(this.gameObject);
     }
 }
コード例 #2
0
 private void OnTriggerEnter(Collider other)
 {
     _rotatingModel.ChangeSide();
     _particlesController.PlayArmoredBugParticles();
     _turningEffect.MakePopUp();
     _eatingController.EatBug(this.gameObject);
 }