示例#1
0
 public Function(FunctionConfig config)
 {
     _name     = "New function";
     _begin    = config.Func.Begin;
     _end      = config.Func.End;
     _function = config.Func;
 }
示例#2
0
        public Function()
        {
            _name  = "New function";
            _begin = new FKey(Vector2.zero);
            _end   = new FKey(Vector2.zero);

            _function = new AnimationCurve(new Keyframe[] { _begin, _end });
        }