// Start is called before the first frame update
    void Start()
    {
        //Use Gameobject to initialise empty script objects
        branchScript = branch.GetComponent <BranchText>();

        woodUpScript = woodUp.GetComponent <WoodUpdate>();
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        //Use Gameobject to initialise empty script objects
        upgrade1TextScript = upgrade1Text.GetComponent <Upgrade1Text>();
        upgrade1CostScript = upgrade1Cost.GetComponent <Upgrade1CostText>();

        branchScript    = branch.GetComponent <BranchText>();
        rangerNumScript = rangerGainOB.GetComponent <RangerNumText>();

        woodUpScript = woodUp.GetComponent <WoodUpdate>();
    }