Ejemplo n.º 1
0
    public Timer Create(TimeHandler callback, TimeArgHandler argcallback, float frequency, int repeate, params System.Object[] args)
    {
        Timer ti = new Timer(callback, argcallback, frequency, repeate, args);

        _Timers.Add(ti);
        return(ti);
    }
Ejemplo n.º 2
0
 public void CleanUp()
 {
     Handler    = null;
     ArgHandler = null;
     Iscomplete = true;
     Repeate    = 1;
     Frequency  = 0;
 }
Ejemplo n.º 3
0
 public Timer(TimeHandler handler, TimeArgHandler arghandler, float frequency, int reapeate, System.Object[] args)
 {
     this.Handler    = handler;
     this.ArgHandler = arghandler;
     this.Frequency  = frequency;
     this.Repeate    = reapeate;
     this.Args       = args;
     LastTickTime    = Time.time;
 }
Ejemplo n.º 4
0
 public Timer CreateTimer(TimeArgHandler argcallback, float frequency, int repeate, params System.Object[] args)
 {
     return(Create(null, argcallback, frequency, repeate, args));
 }