private void DeconstructionBegin(DeconstructionBeginEvent begin) { GameObject deconstructing = GuidHelper.RequireObjectFrom(begin.Guid); Constructable constructable = deconstructing.RequireComponent <Constructable>(); constructable.SetState(false, false); }
private void DeconstructionBegin(DeconstructionBeginEvent begin) { GameObject deconstructing = NitroxEntity.RequireObjectFrom(begin.PieceId); Constructable constructable = deconstructing.RequireComponent <Constructable>(); constructable.SetState(false, false); }