예제 #1
0
    private void Awake()
    {
        upgradesBlocksInfoPanel = GetComponentInChildren <UpgradesBlocksInfoPanel>();
        upgradesBlocksArea      = GetComponentInChildren <UpgradesBlocksArea>();

        UpdateUpgradePointsText();
    }
예제 #2
0
    private void Awake()
    {
        upgradesBlocksArea = GetComponentInParent <UpgradesBlocksArea>();
        gameObject.GetComponent <Button>().onClick.AddListener(SelectBlock);

        text = gameObject.GetComponentInChildren <FormattedText>();
    }