void OnValidate() { if (movableItem == null || movableItem.gameObject != gameObject) { movableItem = GetComponent <MovableItem>(); } }
void Reset() { movableItem = GetComponent <MovableItem>(); gameObject.SetLayerRecursively(LayerName.InteractableItem); }