Beispiel #1
0
    public void AdvanceCopMovements()
    {
        Dictionary <int, int> movements = copMovementsByInterval[copMovementIndex];

        foreach (KeyValuePair <int, int> entry in movements)
        {
            gameStateMachine.UpdateCops(entry.Key, entry.Value);
        }

        copMovementIndex++;

        if (copMovementIndex == copMovementsByInterval.Count)
        {
            if (gameStateMachine.currentState == StateType.Playing)
            {
                gameStateMachine.AdvanceState();
            }
        }
    }