示例#1
0
 public HUD(ClientWorld world, GameState gameState)
 {
     _world          = world;
     _gameState      = gameState;
     _hudCanvas      = GameObject.Instantiate(GameManager.instance.clientData.hudCanvasPrefab);
     _worldHUDCanvas = GameObject.Instantiate(GameManager.instance.clientData.worldHUDPrefab);
 }
示例#2
0
        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>();
        }