// 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>(); }
// Start is called before the first frame update void Start() { /* Use Gameobject to initialise empty script objects */ //Ranger rangerNumScript = rangerGainOB.GetComponent <RangerNumText>(); rangerCostScript = rangerCostOB.GetComponent <RangerCostText>(); //Wood woodUpScript = woodUp.GetComponent <WoodUpdate>(); }