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