示例#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;
 }
示例#2
0
        public void RemoveEffect(Data.Effect effect)
        {
            AppliedEffectSystem.RemoveEffect(effect);

            EffectRemoved?.Invoke(effect);
        }
示例#3
0
 public int CountOf(Data.Effect effect) => AppliedEffectSystem.CountOf(effect);
示例#4
0
        public void AddEffect(Data.Effect effect)
        {
            AppliedEffectSystem.AddEffect(effect);

            EffectApplied?.Invoke(effect);
        }