Ejemplo n.º 1
0
 /// <summary>
 /// Creates a timer which continuously fires at the specified interval
 /// </summary>
 /// <param name="interval"></param>
 /// <param name="callback"></param>
 public Timer Every(float interval, Action callback)
 {
     return(new Timer(timer.Repeat(interval, -1, callback, plugin)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a timer which continuously fires at the specified interval
 /// </summary>
 /// <param name="interval"></param>
 /// <param name="callback"></param>
 public void Every(float interval, Action callback)
 {
     timer.Repeat(interval, -1, callback, plugin);
 }