Exemplo n.º 1
0
 //------------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();
         }
     }
 }