コード例 #1
0
ファイル: Timer.cs プロジェクト: Gkxd/Fall16_BVW_Round2
 //timer structure
 public Timer(float duration, Delegate _callback, bool repeat)
 {
     this.duration    = duration;
     this.currentTime = duration;
     this.callback    = _callback;
     this.repeat      = repeat;
     this.callback1   = null;
 }
コード例 #2
0
ファイル: Timer.cs プロジェクト: Gkxd/Fall16_BVW_Round2
 public Timer(float duration, DelegateWithOneParam _callback1, GameObject obj, bool repeat)
 {
     this.duration    = duration;
     this.currentTime = duration;
     this.callback1   = _callback1;
     this.repeat      = repeat;
     this.obj1        = obj;
     this.callback    = null;
 }