// Use this for initialization void Start () { other = (OtherScope)GameObject.FindObjectOfType (typeof(OtherScope)); Debug.Log (other.gameObject.name); }
private void Start() { SomeBool = true; other = (OtherScope)GameObject.FindObjectOfType(typeof(OtherScope)); Debug.Log(other.gameObject.name); }
// Use this for initialization void Start () { other = (OtherScope)GameObject.FindObjectOfType (typeof(OtherScope)); //print (other.name); }
// Use this for initialization void Start() { other = (OtherScope)GameObject.FindObjectOfType(typeof(OtherScope)); Debug.Log(other.gameObject.name); }