예제 #1
0
파일: Game1.cs 프로젝트: MyNick/Game
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     if (gm == null)
         gm = new GameManager(GraphicsDevice);
 }
예제 #2
0
		public void UpdateAll(GameManager game, float delta)
		{
			foreach(GSystem system in _systems.Values)
			{
				system.Update(game, delta);
			}
		}
예제 #3
0
 public void InitAll(GameManager game)
 {
     foreach (GSystem system in _systems.Values)
     {
         system.InitSystems(game);
     }
 }
예제 #4
0
        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);
        }
예제 #5
0
파일: Game1.cs 프로젝트: 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);
 }