コード例 #1
0
    // Use this for initialization
    void Start()
    {
        var bw = GameObject.Find("BreatheWith");

        if (bw && bw.activeSelf)
        {
            bc = bw.GetComponent <BreatheController>();
        }
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     bc       = GameObject.Find("BreatheWith").GetComponent <BreatheController>();
     renderer = GetComponent <Renderer>();
 }