protected override bool Trigger() { base.Trigger(); DCurve d = ReadCfgCurve.GetDataById(CurveID); if (d != null) { this.Curve = ECurve.Get(d.Path); } return(this.Curve != null); }
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); }