예제 #1
0
 void OnMouseDown()
 {
     if (animator != null)
     {
         animator.SetTrigger("FinalHit");
     }
     EventHandeler.CallOnHitSlime();
     StartCoroutine(SwitchScene());
 }
예제 #2
0
 //activated by hitRayFirere
 public void hit()
 {
     if (SlimeAlive)
     {
         EventHandeler.CallOnHitSlime();
         animator.SetTrigger("FinalHit");
         SlimeAlive = false;
         StartCoroutine(NextSlime());
     }
 }
예제 #3
0
 //activated by hitRayFirere
 public void hit()
 {
     if (_GotSlime && animator != null)
     {
         EventHandeler.CallOnHitSlime();
         if (hp > 1)
         {
             animator.SetTrigger("GotHit");
             hp--;
         }
         else
         {
             killAction();
             //addScore;
         }
     }
 }