Example #1
0
    protected override void ActionChangeSequence(SQID value)
    {
        if (value == SQID.EnmAutoMove && Telegram_EnmAutoMoveSelectIndex == this.Index)
        {
            Telegram_EnmAutoMoveSelectIndex = -1;

            UnitControl cCtl = TaskControl as UnitControl;

            int NextX, NextY;
            GetMoveablePos(this.Index, out NextX, out NextY);

            cCtl.ReqAutoMoving(NextX, NextY, OnMoveEnd);

            //Panel変更イベントを入れ替え
            SetPanelEvent(Vector2, new Vector2I(NextX, NextY));

            SequenceManager.SendMessage(MessageType.EnmAuroMoveStart, Index);
        }
    }