void Awake()
    {
        levelCounter      = transform.GetChild(4).GetComponentInChildren <Text>();
        levelCounter.text = level.ToString();

        upgradeButton = transform.GetChild(2).GetComponent <Button>();
        parentCanvas  = GetComponentInParent <Canvas>();

        upgradeRep = transform.GetChild(1).GetChild(0).GetComponent <RepresentStructHandler>();

        icon = transform.GetChild(0).GetChild(0).GetComponent <Image>();
    }
    // Use this for initialization
    void Awake()
    {
        representer = GetComponentInChildren <RepresentStructHandler>();

        if (instance == null || instance.Equals(null))
        {
            instance = this;
            StartCoroutine(AmbientRoutine());
            resource_internal = startingResource;
        }
        else
        {
            Destroy(gameObject);
        }
    }
    void Awake()
    {
        upgradeRep = transform.GetChild(0).GetComponent <RepresentStructHandler>();

        upgradeButton = transform.GetChild(1).GetChild(0).GetComponent <Button>();
        levelCounter  = transform.GetChild(1).GetChild(1).GetComponentInChildren <Text>();

        transactionButton = transform.GetChild(2).GetComponent <Button>();
        bar       = transform.GetChild(2).GetChild(0).GetComponentInChildren <Scrollbar>();
        lockedObj = transform.GetChild(2).GetChild(1).gameObject;

        costRep   = transform.GetChild(3).GetChild(0).GetComponent <RepresentStructHandler>();
        rewardRep = transform.GetChild(3).GetChild(1).GetComponent <RepresentStructHandler>();

        parentCanvas = GetComponentInParent <Canvas>();
    }