Ejemplo n.º 1
0
 public ScheduledEvent(string name, ParameterizedFunctionPointer pointer, object[] parmaiters, float time /*double time*/)
 {
     this.name             = name;
     this.paramFuncPointer = pointer;
     //this.targetTime = DateTime.Now.AddMilliseconds(time);
     targetTime      = Time.time + time * 0.001f;
     this.paramiters = parmaiters;
 }
Ejemplo n.º 2
0
    public static void RegisterNamedEvent(string name, /*double*/ float scheduleTime, ParameterizedFunctionPointer functionPointer, params object[] paramiters)
    {
        Remove(name);

        lock (_events)
        {
            _events.Add(new ScheduledEvent(name, functionPointer, paramiters, scheduleTime));
        }
    }
Ejemplo n.º 3
0
 public static void RegisterEvent(/*double*/ float scheduleTime, ParameterizedFunctionPointer functionPointer, params object[] paramiters)
 {
     RegisterNamedEvent(string.Empty, scheduleTime, functionPointer, paramiters);
 }