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