//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; }
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; }