internal void BoxHitOtherBlock(RaycastBox box) { return; box.GetComponent <Rigidbody>().useGravity = false; box.GetComponent <Rigidbody>().velocity = Vector3.zero; }
internal void BoxHitGround(RaycastBox box) { //return; // box.GetComponent<Rigidbody>().useGravity = false; // box.GetComponent<Rigidbody>().velocity = Vector3.zero; /* foreach (var b in boxesSpawned) * { * b.GetComponent<Rigidbody>().useGravity = false; * }*/ }
internal void BoxHitBarrier(RaycastBox box) { box.transform.parent = ground; box.isImmobile = true; box.GetComponent <Rigidbody>().useGravity = true; }