//------------Colliding Triggers void OnTriggerEnter(Collider other) { if (other.tag == "fire" || other.tag == "lightning") { StartBurning(); } if (other.tag == "person") { AnimationScript other_anim = other.GetComponent <AnimationScript>(); if (other_anim.isBurning()) { StartBurning(); } } }