title: Trying to trigger an animation when colliding with a bullet
body: <p>Well, I'm trying to make an fps where you shoot tagets and appears an &quot;Arcade-Style&quot; score over them on unity 5, but, I don´t really know how to do it, already tried with an <code>OnCollisionEnter()</code>, but I did something wrong and it didn't worked, What can I do? Below you can see my code:</p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class Diana : MonoBehaviour {
  
      public GameObject diana;
      public AnimationClip Score;
  
      private Animation myAnimation;
  
      /* IEnumerator Wait()
      {
  
          myAnimation = GetComponent&lt;Animation&gt;();
          myAnimation.Play(&quot;DianaScore&quot;);
          yield return new WaitForSeconds(3);
  
      } */
  
      void OnTriggerEnter(Collider other)
      {
          Debug.Log(&quot;Funcó wacho&quot;);
          myAnimation = GetComponent&lt;Animation&gt;();
          myAnimation.Play(&quot;DianaScore&quot;);
         // StartCoroutine(Wait());
      }
      void Update () {
  
     }
  }
  </code></pre>
  <p>(Sorry for my bad english, I´m argentinian and new in all this coding thing)</p>