示例#1
0
        public bool FromJSON(J.Node n)
        {
            var o = n.AsObject("Movement");

            if (o == null)
            {
                return(false);
            }

            o.Opt <EasingFactory, IEasing>("easing", ref easing_);

            {
                RandomizableFloat m = null;
                o.Opt("minimum", ref m);
                Minimum = m;
            }

            {
                RandomizableFloat m = null;
                o.Opt("maximum", ref m);
                Maximum = m;
            }

            return(true);
        }
示例#2
0
 public Movement(RandomizableFloat min, RandomizableFloat max)
 {
     Minimum = min;
     Maximum = max;
 }