ot; keyword:</strong></p>
<pre><code class="lang-csharp">WindroseAnimator windroseAnimator = _animator.Play(&quot;Idle&quot;) as WindroseAnimator;
</code></pre>
<p><strong>The &quot;explicit cast&quot; way:</strong></p>
<pre><code class="lang-csharp">WindroseAnimator windroseAnimator = (WindroseAnimator)_animator.Play(&quot;Idle&quot;);
</code></pre>
<h2 id="defining-actions">Defining Actions</h2>
<p>You can interact with the animation currently playing and specify actions to be fired when some event happen