예제 #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)));
 }
예제 #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);
 }