dieOnVine()

public void dieOnVine(string trig){
    int t = 0;
    foreach(string trigger in deathAnimators.triggers){
      if(trigger == trig){
        string runThis = deathAnimators.deaths.ElementAt(t);
        runAssociatedEffect(trig, true);
        animator.SetBool(runThis, true);
        gameObject.layer = LayerMask.NameToLayer("Dying");
        return;
      }
      t++;
    }
  }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *