Example #1
0
	/// <summary>
	/// Gets the instance.
	/// </summary>
	/// <returns>The instance.</returns>
	public static TickRunner GetInstance(){
		if (instance == null) {
			instance = new TickRunner();

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