public void SliceComplete() { _daggerHitTextScript.OnHit(); //add score //DaggerHitTextScript.EnableText(_hitText); _comboCounter.IncrementCombo(); _daggerHitTextScript.OnHit(); GetComponent <Animator>().SetTrigger("Hit"); StartCoroutine(DestroyRoutine()); }
/// <summary> /// Call this when the target is hit /// </summary> public void OnHit() { _comboCounter.IncrementCombo(); //byt ut mot träffat äpple Destroy(this.gameObject); }