title: Unity; animation on prefab
body: <p>Tried to find this kind of problem around the net but failed so...</p>
  
  <p>Here's the thing - I have a prefab gameobject that is to represent a unit, portrait more specifically. It has several scripts attached and an Animation component with two animations: Static and Selected.<br>
  The prefab is instantiated, moved freely and, after placing, it can be clicked to select it, which should, aside from executing a bit of code, start the Selected animation. </p>
  
  <p>Using this code:</p>
  
  <pre><code>    void OnMouseDown(){
  //
  //Some inside stuff
  //
      if (this.GetComponent&lt;UnitHandling&gt; ().thisUnit.Selected)
          this.animation.Play("Selected");
      if(this.animation.IsPlaying ("Selected"))
          Debug.Log("Animation of selection is playing");
  }
  </code></pre>
  
  <p>I checked that the animation seems to be playing (at least the Debug message is showing) but I see no animation... What am I doing wrong?</p>