Exemplo n.º 1
0
 public SheduleUpdate(float inTime, ProcFunctionUpdate inFunc, float inOffsetTime, bool inDebug = false)
     : base(inTime, inOffsetTime)
 {
     debug = inDebug;
     func  = inFunc;
     debug = false;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 protected void AddSheduleUpdate(float time, ProcFunctionUpdate function, float offsetTime)
 {
     sheduleList.Add(new SheduleUpdate(time, function, offsetTime));
 }