Exemplo n.º 1
0
        private void Awake()
        {
            rectTransform = transform as RectTransform;

            highlighter = CreateHighlighter();
            highlighter.gameObject.SetActive(false);

            inventory = PlayerController.instance.inventory;
        }
Exemplo n.º 2
0
        private void Awake()
        {
            rectTransform = transform as RectTransform;

            highlighter = CreateHighlighter();
            highlighter.gameObject.SetActive(false);

            // TODO pass the player and the inventory to the constructor (it's required to get rid of prefabs first)
            player    = WorldState.instance.Player;
            inventory = player.inventory;
        }