Esempio n. 1
0
        void Unload()
        {
            DestroyGUIAlerts();

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