コード例 #1
0
ファイル: sprout.cs プロジェクト: ianburnette/IslandFox
 // Use this for initialization
 void Start()
 {
     GetComponent<SpriteRenderer> ().enabled = false;
     //	Invoke ("ShowSprout", waitTime);
     ShowSprout ();
     inventory = GameObject.Find ("persistentGM").GetComponent<persistentInventory> ();
 }
コード例 #2
0
    // 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>();
    }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     persInv = GameObject.Find ("persistentGM").GetComponent<persistentInventory> ();
 }