コード例 #1
0
    public void SliceComplete()
    {
        _daggerHitTextScript.OnHit();

        //add score
        //DaggerHitTextScript.EnableText(_hitText);
        _comboCounter.IncrementCombo();
        _daggerHitTextScript.OnHit();

        GetComponent <Animator>().SetTrigger("Hit");

        StartCoroutine(DestroyRoutine());
    }
コード例 #2
0
 /// <summary>
 /// Call this when the target is hit
 /// </summary>
 public void OnHit()
 {
     _comboCounter.IncrementCombo();
     //byt ut mot träffat äpple
     Destroy(this.gameObject);
 }