Пример #1
0
 // Use this for initialization
 void Start()
 {
     p = GetComponentInParent <playerControllerBoxTester>();
 }
Пример #2
0
 void Start()
 {
     box = transform.parent.gameObject;
     p   = GameObject.Find("Player").GetComponent <playerControllerBoxTester>();
 }