Exemple #1
0
        private void DeconstructionBegin(DeconstructionBeginEvent begin)
        {
            GameObject    deconstructing = GuidHelper.RequireObjectFrom(begin.Guid);
            Constructable constructable  = deconstructing.RequireComponent <Constructable>();

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

            constructable.SetState(false, false);
        }