Esempio 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);
        }
Esempio 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!");
     }
 }
Esempio n. 3
0
 public bool HasSource(IPlayerFlagsSource source)
 {
     return(FlagSources.Contains(source));
 }