Exemplo n.º 1
0
 public EnemySystem(GameObject ownerPrefab, List <Vector3> waypoints, bool isOwnedByPlayer = true)
 {
     AbilityControlSystem = new Abilities.ControlSystem(this, isOwnedByPlayer);
     TraitControlSystem   = new Traits.ControlSystem(this);
     AppliedEffectSystem  = new AppliedEffectSystem();
     this.waypoints       = waypoints;
     Prefab               = ownerPrefab;
     Prefab.layer         = 12;
     IsOwnedByLocalPlayer = isOwnedByPlayer;
 }
Exemplo n.º 2
0
        public void RemoveEffect(Data.Effect effect)
        {
            AppliedEffectSystem.RemoveEffect(effect);

            EffectRemoved?.Invoke(effect);
        }
Exemplo n.º 3
0
 public int CountOf(Data.Effect effect) => AppliedEffectSystem.CountOf(effect);
Exemplo n.º 4
0
        public void AddEffect(Data.Effect effect)
        {
            AppliedEffectSystem.AddEffect(effect);

            EffectApplied?.Invoke(effect);
        }