Example #1
0
File: Game1.cs Project: MyNick/Game
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     if (gm == null)
         gm = new GameManager(GraphicsDevice);
 }
Example #2
0
		public void UpdateAll(GameManager game, float delta)
		{
			foreach(GSystem system in _systems.Values)
			{
				system.Update(game, delta);
			}
		}
Example #3
0
 public void InitAll(GameManager game)
 {
     foreach (GSystem system in _systems.Values)
     {
         system.InitSystems(game);
     }
 }
        public void Awake()
        {
            game = GameManager.Instance;
            progressBar = GameObject.FindWithTag ("progress-bar").GetComponent<ProgressBarController> ();

            timerRenderer = GetComponent<Renderer> ();
            playersObject = GameObject.Find ("Players").transform;
            timer = new Timer (this);
        }
Example #5
0
File: Game1.cs Project: MyNick/Game
 /// <summary>
 /// Allows the game to perform any initialization it needs to before starting to run.
 /// This is where it can query for any required services and load any non-graphic
 /// related content.  Calling base.Initialize will enumerate through any components
 /// and initialize them as well.
 /// </summary>
 protected override void Initialize()
 {
     base.Initialize();
     if (gm == null)
         gm = new GameManager(GraphicsDevice);
 }