void Start() { bounds = GameObject.FindWithTag("Ground").GetComponent<Boundaries>(); }
// Use this for initialization void Start() { texture = GetComponent <RawImage>().texture as Texture2D; bounds = GameObject.Find("Ground").GetComponent <Boundaries>(); }
// Use this for initialization void Start() { texture = GetComponent<RawImage>().texture as Texture2D; bounds = GameObject.Find("Ground").GetComponent<Boundaries>(); }