public bool Remove(FunapiTimer timer) { if (list_.Remove(timer)) { if (debug != null) { debug.LogDebug("[Timer] '{0}' deleted.", timer.name); } return(true); } return(false); }
public void Add(FunapiTimer timer, bool removeOld = false) { if (timer == null) { return; } if (removeOld && list_.Exists(timer.name)) { list_.Remove(timer.name); } list_.Add(timer); if (debug != null) { debug.LogDebug("[Timer] {0}", timer.ToString()); } }