public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; if (gm == null) gm = new GameManager(GraphicsDevice); }
public void UpdateAll(GameManager game, float delta) { foreach(GSystem system in _systems.Values) { system.Update(game, delta); } }
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); }
/// <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); }