/// <summary> /// Gets the instance. /// </summary> /// <returns>The instance.</returns> public static TickRunner GetInstance(){ if (instance == null) { instance = new TickRunner(); } return instance; }
/// <summary> /// Gets the instance. /// </summary> /// <returns>The instance.</returns> public static TickRunner GetInstance() { if (instance == null) { instance = new TickRunner(); } return(instance); }
/// <summary> /// Stop this instance. /// </summary> public void Stop() { if (_running == true) { _running = false; TickRunner.GetInstance().RemoveTicker(this); } }
void Update() { TickRunner.GetInstance().Update(); }
private void InitApplication() { TickRunner.GetInstance().Init(); }
/// <summary> /// Start this instance. /// </summary> public void Start() { _startTime = (uint)(Time.time * 1000); _running = true; TickRunner.GetInstance().AddTicker(this); }