public void Clear()
 {
     time = 0;
     runningTime = 0;
     isrunning = false;
     callback = null;
 }
 public void CheckUpdate(float deltaTime)
 {
     if (isrunning && callback != null) {
         if (runningTime < time)
             runningTime += deltaTime;
         else {
             callback ();
             callback = null;
             runningTime = 0;
         }
     }
 }
 public void Add(int count, float millisecondsTimeout, SendTimerDelegate method)
 {
     time = millisecondsTimeout;
     callback = method;
 }