void Start() { child1 = GetComponentInChildren <checkGravityCollision>(); child2 = GetComponentInChildren <CheckGravityLeftAndRight>(); }
// Start is called before the first frame update void Start() { parent = transform.parent.GetComponent <CheckGravityLeftAndRight>(); }