Exemple #1
0
    public void Add(IFixedUpdateEvent updateEvent)
    {
        if (IsAdded(updateEvent))
        {
            LogUtil.W("UpdateEvent has been added!");
            return;
        }

        _fixedUpdateEventList.Add(updateEvent);
    }
Exemple #2
0
    public void Remove(IFixedUpdateEvent updateEvent)
    {
        if (!IsAdded(updateEvent))
        {
            LogUtil.W("UpdateEvent remove failed, not found!");
            return;
        }

        _fixedUpdateEventList.Remove(updateEvent);
    }
Exemple #3
0
 public bool IsAdded(IFixedUpdateEvent updateEvent)
 {
     return(_fixedUpdateEventList.IndexOf(updateEvent) != -1);
 }