// Constructor of node having single animation.
 // Parameter animationClip must not be null.
 public MyAnimationStateMachineNode(string name, MyAnimationClip animationClip)
     : base(name)
 {
     if (animationClip != null)
     {
         var nodeTrack = new MyAnimationTreeNodeTrack();
         nodeTrack.SetClip(animationClip);
         m_rootAnimationNode = nodeTrack;
     }
     else
     {
         Debug.Fail("Creating single animation node in machine " + this.Name + ", node name "
         + name + ": Animation clip must not be null!");            
     }
 }
 // Constructor of node having single animation.
 // Parameter animationClip must not be null.
 public MyAnimationStateMachineNode(string name, MyAnimationClip animationClip)
     : base(name)
 {
     if (animationClip != null)
     {
         var nodeTrack = new MyAnimationTreeNodeTrack();
         nodeTrack.SetClip(animationClip);
         m_rootAnimationNode = nodeTrack;
     }
     else
     {
         Debug.Fail("Creating single animation node in machine " + this.Name + ", node name "
                    + name + ": Animation clip must not be null!");
     }
 }