Пример #1
0
 private void onTrigger(Collider2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         HeroController e = other.GetComponent <HeroController> ();
         if (handFallTimer < handFallDommageMaxTime && handFallTimer > handFallDommageMinTime)
         {
             e.Dommage(dommage);
         }
     }
 }
Пример #2
0
 private void onTrigger(Collider2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         HeroController e = other.GetComponent <HeroController> ();
         if (laserTimer < activeLaserTime)
         {
             e.Dommage(dommage);
         }
     }
 }