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