コード例 #1
0
        private void severFuelLine()
        {
            Events["dropEVAFuelLine"].active              = false;
            Events["pickupEVAFuelLine"].active            = true;
            Events["cutEVAFuelLine"].active               = false;
            Events["openEVAFuelTransfer"].active          = false;
            Events["closeEVAFuelTransfer"].active         = false;
            Events["cutEVAFuelLine"].unfocusedRange       = 4;
            Events["openEVAFuelTransfer"].unfocusedRange  = 5;
            Events["closeEVAFuelTransfer"].unfocusedRange = 5;

            if (evaWindow != null)
            {
                evaWindow.severConnection();
            }

            OnTargetLost();

            targetVessel = null;

            compoundPart.target = null;

            compoundPart.direction      = Vector3.zero;
            compoundPart.targetPosition = Vector3.zero;
            compoundPart.targetRotation = Quaternion.identity;

            compoundPart.attachState = CompoundPart.AttachState.Detached;
            EVAAttachState           = CompoundPart.AttachState.Detached;
        }