Пример #1
0
    public override void Execute(Command com)
    {
        if (!com.Used)
        {
            MovementGroup.CreateGroup(com);
            com.Used = true;
        }

        MovementGroup.LastCreatedGroup.Add(this);
    }
Пример #2
0
    public override void Execute(Command com)
    {
        if (!com.Used)
        {
            MovementGroup.CreateGroup(com);
            com.Used = true;
        }

        MovementGroup.LastCreatedGroup.Add(this);

        if (StraightPath)
        {
            RepathCount /= 4;
        }
        else
        {
            RepathCount /= 2;
        }
    }