Esempio n. 1
0
 public CHealthBar(int HP, GameObject GO)
 {
     this.HP   = HP;
     healthBar = new Text(GO.Context, "Health: " + HP, new Vector2(0, 0), new Vector2(3, 1), AssetManager.GetResource <SpriteFont>("mainFont"));
     healthBar.AddGameObject(GO, new Vector2(-1, -2));
 }