// Use this for initialization void Start() { GetComponent<SpriteRenderer> ().enabled = false; // Invoke ("ShowSprout", waitTime); ShowSprout (); inventory = GameObject.Find ("persistentGM").GetComponent<persistentInventory> (); }
// Use this for initialization void Start() { persInv = GameObject.Find ("persistentGM").GetComponent<persistentInventory> (); // seedPlantingHUD = persInv.gameObject vineHUD = persInv.transform.GetChild (0).GetChild (1).gameObject; seedPlantingHUD =persInv.transform.GetChild (0).GetChild (5).gameObject; currentSeedImage = seedPlantingHUD.transform.GetChild (0).GetChild (3).GetComponent<Image>(); currentCount1 = seedPlantingHUD.transform.GetChild (0).GetChild (1).GetComponent<Text>(); currentCount2 = seedPlantingHUD.transform.GetChild (0).GetChild (2).GetComponent<Text>(); }
// Use this for initialization void Start() { persInv = GameObject.Find ("persistentGM").GetComponent<persistentInventory> (); }