private void OnToggle(int slotID, bool state)
 {
     if (thisSeamoth.GetSlotBinding(slotID) == SeamothShieldPrefab.TechTypeID)
     {
         if (state)
         {
             StartShield();
         }
         else
         {
             StopShield();
         }
     }
 }
        private void OnToggle(int slotID, bool state)
        {
            if (seamoth.GetSlotBinding(slotID) == LaserCannon.TechTypeID)
            {
                toggle = state;

                if (state)
                {
                    OnEnable();
                }
                else
                {
                    OnDisable();
                }
            }
        }
示例#3
0
        private void OnToggle(int slotID, bool state)
        {
            if (thisSeamoth.GetSlotBinding(slotID) == ScannerModulePrefab.TechTypeID)
            {
                isToggle = state;

                if (isToggle)
                {
                    OnEnable();
                }
                else
                {
                    OnDisable();
                }
            }
        }