Start() public method

public Start ( float _interval, Action _callBack ) : void
_interval float
_callBack Action
return void
コード例 #1
0
    public static UniTimer Create(float _interval, float _freq, Action <UniTimer> _callUpdate, Action <UniTimer> _callBack)
    {
        UniTimer timer = new UniTimer();

        timer.Start(_interval, _freq, _callUpdate, _callBack);
        return(timer);
    }
コード例 #2
0
ファイル: TimeTicker.cs プロジェクト: moto2002/ARPG
 private void init(float time, bool reverse)
 {
     if (IsTicking)
     {
         return;
     }
     IsTicking = true;
     TotalTime = time;
     mReverse  = reverse;
     if (mReverse)
     {
         NowTime = time;
     }
     else
     {
         NowTime = 0;
     }
     if (mTimer != null)
     {
         mTimer.Stop();
         mTimer.Start(mTotalTime, mFreq, (t) =>
         {
             tick();
         },
                      (t) =>
         {
             end();
         });
     }
     else
     {
         mTimer = UniTimer.Create(mTotalTime, mFreq, (t) =>
         {
             tick();
         },
                                  (t) =>
         {
             end();
         });
     }
 }
コード例 #3
0
 public static UniTimer Create(float _interval, float _freq, Action<UniTimer> _callUpdate, Action<UniTimer> _callBack)
 {
     UniTimer timer = new UniTimer();
     timer.Start(_interval, _freq, _callUpdate, _callBack);
     return timer;
 }