示例#1
0
        public void Dispose()
        {
            screen.Current?.Dispose();

            music.Dispose();

            instance = null;
        }
示例#2
0
        public Ingame(SpriteBatch spriteBatch, GraphicsDevice gDevice)
        {
            if (instance != null)
            {
                throw new Exception();
            }
            instance = this;

            this.spriteBatch = spriteBatch;
            this.gDevice     = gDevice;

            screen = new UpdrawEnumerator(WholeGame());

            music          = Music.dialogueMusic.CreateInstance();
            music.IsLooped = true;
            music.Volume   = 0.3f;
            music.Play();
        }
示例#3
0
文件: Game1.cs 项目: bytinggames/LD48
 private void NewIngame()
 {
     ingame = new Ingame(spriteBatch, GraphicsDevice);
 }