private void Awake() { upgradesBlocksInfoPanel = GetComponentInChildren <UpgradesBlocksInfoPanel>(); upgradesBlocksArea = GetComponentInChildren <UpgradesBlocksArea>(); UpdateUpgradePointsText(); }
private void Awake() { upgradesBlocksArea = GetComponentInParent <UpgradesBlocksArea>(); gameObject.GetComponent <Button>().onClick.AddListener(SelectBlock); text = gameObject.GetComponentInChildren <FormattedText>(); }