Пример #1
0
        /// <summary>
        /// Restarts the level
        /// </summary>
        public void RestartLevel()
        {
            player.Reset();
            player.Shape.Position = playerStartingPosition;

            //reset all fields required for level restart
            CurrentlyCarriedCustomer = null;
            CustomerDespawnEvents.ResetContainer();
            activeCustomersInlevel.ClearContainer();
            customerSpawnEvents.ResetContainer();
            GenerateCustomerSpawnEvents();
            PlayerScore = 0;
        }