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