Ejemplo n.º 1
0
        public void RegisterSource(IPlayerFlagsSource source)
        {
            if (FlagSources.Contains(source))
            {
                Debug.LogWarning($"Tried to add player flag source ({source.GetType().Name}) that already exists!");
                return;
            }

            FlagSources.Add(source);
        }
Ejemplo n.º 2
0
 public void UnregisterSource(IPlayerFlagsSource source)
 {
     if (FlagSources.Contains(source))
     {
         FlagSources.Remove(source);
     }
     else
     {
         Debug.LogWarning($"Tried to remove player flag source ({source.GetType().Name}) that didn't exist!");
     }
 }