예제 #1
0
 /// <summary>
 /// Destroys a timer, returns the instance to the pool and sets the variable to null
 /// </summary>
 /// <param name="timer"></param>
 public void Destroy(ref Timer timer)
 {
     timer?.DestroyToPool();
     timer = null;
 }
예제 #2
0
 /// <summary>
 /// Destroys a timer, returns the instance to the pool and sets the variable to null
 /// </summary>
 /// <param name="timer"></param>
 public void Destroy(ref Timer timer)
 {
     timer?.DestroyToPool();
     timer = null;
 }