Beispiel #1
0
        protected override bool Trigger()
        {
            base.Trigger();
            DCurve d = ReadCfgCurve.GetDataById(CurveID);

            if (d != null)
            {
                this.Curve = ECurve.Get(d.Path);
            }
            return(this.Curve != null);
        }
Beispiel #2
0
        public AnimationCurve GetCurve(int id)
        {
            DCurve db = null;

            if (id > 0)
            {
                db = ReadCfgCurve.GetDataById(id);
            }
            if (db != null)
            {
                return(ECurve.Get(db.Path));
            }
            return(null);
        }