// Use this for initialization void Start() { Application.targetFrameRate = 60; // Add an audio source and tell the media player to use it for playing sounds Microsoft.Xna.Framework.Media.MediaPlayer.AudioSource = gameObject.AddComponent <AudioSource>(); drawQueue = new DrawQueue(); game = new Game1(); game.DrawQueue = drawQueue; game.Begin(); timeleft = updateInterval; //Application.targetFrameRate = 30; }
// Use this for initialization void Start() { Application.targetFrameRate = 60; // Add an audio source and tell the media player to use it for playing sounds Microsoft.Xna.Framework.Media.MediaPlayer.AudioSource = gameObject.AddComponent<AudioSource>(); drawQueue = new DrawQueue(); game = new Game1(); game.DrawQueue = drawQueue; game.Begin(); timeleft = updateInterval; //Application.targetFrameRate = 30; }