// Use this for initialization void Start() { txt = GetComponent <Text>(); equip = GameObject.Find("EquipButton"); equipS = equip.GetComponent <EquipScript>(); eat = GameObject.Find("EatButton"); eatS = eat.GetComponent <EatScript>(); if (shopMode) { buy = GameObject.Find("BuyButton"); buyS = buy.GetComponent <BuyScript>(); buy.SetActive(false); } equip.SetActive(false); eat.SetActive(false); }
// Use this for initialization void Start() { txt = GetComponent<Text>(); equip = GameObject.Find("EquipButton"); equipS = equip.GetComponent<EquipScript>(); eat = GameObject.Find("EatButton"); eatS = eat.GetComponent<EatScript>(); if (shopMode) { buy = GameObject.Find("BuyButton"); buyS = buy.GetComponent<BuyScript>(); buy.SetActive(false); } equip.SetActive(false); eat.SetActive(false); }