using UnityEngine; public class Cratework : MonoBehaviour { public Crate left; public Crate right; [HideInInspector] public bool hit = false; void Update () { if (left.hit || right.hit) { hit = true; } } }