sortByPriority() 공개 메소드

Sort layers in collection by layer priority.
public sortByPriority ( ) : void
리턴 void
        public Boolean update(GameTime gameTime, LayerCollection actual_screen)
        {
            actual_screen.sortByPriority();

            foreach (Layer layer in actual_screen.components)
            {
                layer.drawable.update(gameTime);
            }

            return true;
        }
        public Boolean draw(LayerCollection actual_screen)
        {
            spriteBatch.Begin();

            actual_screen.sortByPriority();

            foreach (Layer layer in actual_screen.components)
            {
                layer.drawable.draw(spriteBatch);
            }

            spriteBatch.End();

            return true;
        }