Exemplo n.º 1
0
        void Unload()
        {
            DestroyGUIAlerts();

            guiAlertTimer?.DestroyToPool();
            guiAlertTimer = null;
        }
Exemplo n.º 2
0
 void saveDataImmediate()
 {
     if (saveDataBatchedTimer != null)
     {
         saveDataBatchedTimer.DestroyToPool();
         saveDataBatchedTimer = null;
     }
     Interface.Oxide.DataFileSystem.WriteObject(Name, friendsData);
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
0
 void DestroyTimer(Timer timer)
 {
     timer?.DestroyToPool();
     timer = null;
 }