Пример #1
0
 void Start()
 {
     obj = GetComponent <interactiveObject>();
     sr  = GetComponent <SpriteRenderer>();
 }
Пример #2
0
 void Start()
 {
     obj = GetComponent <interactiveObject>();
     sr  = GetComponent <SpriteRenderer>();
     // player = GameObject.Find("Player");
 }