public BoneAnimator(Actor attach, BoneSet set, Stance initStance, float originX, float originY)
        {
            bones          = set;
            currentStance  = initStance;
            previousStance = currentStance;
            origin         = new Vector2(originX, originY);
            progress       = 0.0f;
            depth          = 0.5f;
            speed          = 20.0f;
            yoffset        = 0.0f;
            entityAttach   = attach;

            foreach (Bone b in bones)
            {
                b.Animator = this;
            }
        }
示例#2
0
 public Stance(BoneSet boneSet)
 {
     bones = boneSet;
 }