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