public void Add(IFixedUpdateEvent updateEvent) { if (IsAdded(updateEvent)) { LogUtil.W("UpdateEvent has been added!"); return; } _fixedUpdateEventList.Add(updateEvent); }
public void Remove(IFixedUpdateEvent updateEvent) { if (!IsAdded(updateEvent)) { LogUtil.W("UpdateEvent remove failed, not found!"); return; } _fixedUpdateEventList.Remove(updateEvent); }
public bool IsAdded(IFixedUpdateEvent updateEvent) { return(_fixedUpdateEventList.IndexOf(updateEvent) != -1); }