Hi. I have a 2D animation made by animation window. In animator, i create this: The animation plays good and i have no problem with this. But in other script in the same scene, i want show the GUI when the animation ends (MoveCastle ends). The object are this: and my code is: Code (csharp): public Animator anim; void OnGUI() { if (anim.animation.isPlaying) { print ("SUCCESS!!!"); } } And this not works, i recieve this error: How i can access to the animation to control it? Im not using avatar or 3d bones because i only animate sprites moving it. Thanks!