public void RemoveTicker(CTicker t) { int num = this.m_tickerList.IndexOf(t); if (num != -1) { this.m_tickerList.RemoveAt(num); } }
private void DoTick(float dtime) { for (int i = 0; i < this.m_tickerList.Count; i++) { CTicker ticker = (CTicker)this.m_tickerList[i]; if (ticker != null) { ticker.Tick(dtime); } } }
private static void SetTimeoutComplete(CTicker ticker) { if (ticker.CompleteFuncEmpty != null) { ticker.CompleteFuncEmpty(); } else if (ticker.CompleteFuncData != null) { ticker.CompleteFuncData(ticker.data); } ClearTimeout(ticker.id); }
public static void ClearTimeout(int id) { CTicker ticker = default(CTicker); if (sTickerMap.TryGetValue(id, out ticker)) { int num = funcList.IndexOf(ticker); if (num > -1) { funcList.RemoveAt(num); } sTickerMap.Remove(id); ticker.Dispose(); ticker = null; } }
public void AddTicker(CTicker t) { this.m_tickerList.Add(t); }