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