Esempio n. 1
0
        protected override void OnEnd()
        {
            base.OnEnd();

            if (ElectroDashUI != null)
            {
                User.BManager.battleUIManager.RemoveUIElement(ElectroDashUI);
                ElectroDashUI = null;
            }
        }
Esempio n. 2
0
        protected override void OnStart()
        {
            base.OnStart();

            if (Action.CommandEnabled == true && Action.DrawActionCommandInfo == true)
            {
                ElectroDashUI = new GulpActionCommandUI(actionCommand as GulpCommand);
                User.BManager.battleUIManager.AddUIElement(ElectroDashUI);
            }
        }
        protected override void OnEnd()
        {
            base.OnEnd();

            BehindEntity?.StopTarget();

            if (GulpUI != null)
            {
                User.BManager.battleUIManager.RemoveUIElement(GulpUI);
                GulpUI = null;
            }
        }
        protected override void OnStart()
        {
            base.OnStart();

            //Check if there is a BattleEntity behind the one eaten and if it can be hit by this move
            List <BattleEntity> behindEntities = new List <BattleEntity>();

            User.BManager.GetEntitiesBehind(behindEntities, EntitiesAffected[0]);
            BattleManagerUtils.FilterEntitiesByHeights(behindEntities, Action.MoveProperties.HeightsAffected);

            //Store the reference to the behind entity and tell it it's being targeted
            if (behindEntities.Count > 0)
            {
                BehindEntity = behindEntities[0];
                BehindEntity.TargetForMove(User);
            }

            if (Action.CommandEnabled == true && Action.DrawActionCommandInfo == true)
            {
                GulpUI = new GulpActionCommandUI(actionCommand as GulpCommand);
                User.BManager.battleUIManager.AddUIElement(GulpUI);
            }
        }