public UnitEntityCombatGraphics(UnitEntityGraphics graphics)
        {
            this.world  = graphics.World;
            this.combat = graphics.Unit.Combat;
            this.config = graphics.Config;

            combat.OnAttack += OnAttack;

            ShownAttackables = new HashSet <Vector3Int>();
        }
Beispiel #2
0
        public AbilityCastTargeter(Ability ability, GUIStateManager gui, World world, PlayerUnitEntityController unit, UnitEntityConfig config)
        {
            this.ability = ability;
            this.gui     = gui;
            this.world   = world;
            this.unit    = unit;
            this.config  = config;

            range = ability.GetWithinRange(unit.Unit, world);
            area  = new HashSet <Vector3Int>();
        }