// Use this for initialization void Start() { var bw = GameObject.Find("BreatheWith"); if (bw && bw.activeSelf) { bc = bw.GetComponent <BreatheController>(); } }
// Use this for initialization void Start() { bc = GameObject.Find("BreatheWith").GetComponent <BreatheController>(); renderer = GetComponent <Renderer>(); }