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