Ejemplo n.º 1
0
 public void Initialize(IReadOnlyList <IAbility> abilities)
 {
     _abilities.Clear();
     _abilities.AddRange(abilities);
     foreach (var ab in _abilities)
     {
         ab.Initialize(Actor);
     }
     _respawnables = EnumerableQuery.GetAllAsList <IRespawnable>(_abilities);
     foreach (var ab in _abilities)
     {
         ab.Setup();
     }
     OnAbilitiesChanged();
 }