예제 #1
0
    public void Execute()
    {
        for (ActualIndex = 0; ActualIndex < IndexCommand; ActualIndex++)
        {
            _Commands[ActualIndex].unitEntity.agent.isStopped = true;
            _Commands[ActualIndex].unitEntity.Commands.Clear();
        }
        for (ActualIndex = 0; ActualIndex < IndexCommand; ActualIndex++)
        {
            _Commands[ActualIndex].unitEntity.agent.isStopped = false;

            _Commands[ActualIndex].unitEntity.Commands.Add(_Commands[ActualIndex]);
            _Commands[ActualIndex].unitEntity.CommandIndex = 0;
            _Commands[ActualIndex].unitEntity.Execute      = true;
        }
        _Commands.Clear();
        IndexCommand = 0;
        Interactions.ClearTiles();
    }