public HUD(ClientWorld world, GameState gameState) { _world = world; _gameState = gameState; _hudCanvas = GameObject.Instantiate(GameManager.instance.clientData.hudCanvasPrefab); _worldHUDCanvas = GameObject.Instantiate(GameManager.instance.clientData.worldHUDPrefab); }
void Awake() { this.name = "UI"; ib = new GameObject("Infobar").AddComponent <WorldHUD>(); ib.init(this); ib.transform.parent = UIManager.gc.transform; menu = new GameObject("Menu").AddComponent <UIHexMenu>(); menu.gameObject.SetActive(false); menu.transform.parent = UIManager.gc.transform; //menu.transform.localPosition = LayerV.HUD magCard = new GameObject("Magnified Card").AddComponent <MagnifiedCardModel>(); }