示例#1
0
        public static MotionItem CreateDefault(MotionFile ownerFile)
        {
            MotionItem item = new MotionItem(ownerFile);

            item.AddPoint(new MotionPoint(new PVector2(0f, 0f)));
            item.AddPoint(new MotionPoint(new PVector2(1f, 1f)));
            return(item);
        }
示例#2
0
 public static void CreateDefault(MotionItem motionItem)
 {
     motionItem.AddPoint(new MotionPoint(new PVector2(0f, 0f)));
     motionItem.AddPoint(new MotionPoint(new PVector2(1f, 1f)));
 }