public SheduleUpdate(float inTime, ProcFunctionUpdate inFunc, float inOffsetTime, bool inDebug = false) : base(inTime, inOffsetTime) { debug = inDebug; func = inFunc; debug = false; }
public static void CallFunc(ProcFunctionUpdate func, float dt, string filename) { Stopwatch sw = new Stopwatch(); sw.Start(); func(dt); sw.Stop(); WriteLogTime(sw.ElapsedMilliseconds, func.Method.Name, filename); }
protected void AddSheduleUpdate(float time, ProcFunctionUpdate function, float offsetTime) { sheduleList.Add(new SheduleUpdate(time, function, offsetTime)); }