private void Awake() { rectTransform = transform as RectTransform; highlighter = CreateHighlighter(); highlighter.gameObject.SetActive(false); inventory = PlayerController.instance.inventory; }
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; }