IEnumerator AddTimerCoroutine <T>(float timesec, TimeoutEventDelegate cb, params object[] arr) { yield return(0); if (!_CallbackDic.ContainsKey(typeof(T))) { _CallbackDic.Add(typeof(T), new Timer(timesec, cb, arr)); } }
public void AddTimer <T>(float timesec, TimeoutEventDelegate cb, params object[] arr) { StartCoroutine(AddTimerCoroutine <T>(timesec, cb, arr)); }
public Timer(float timesec, TimeoutEventDelegate cb, params object[] arr) { _Params = arr; _Callback = cb; _TimerEntity = new CrudeElapsedTimer(timesec); }