コード例 #1
0
 // Token: 0x060001F0 RID: 496 RVA: 0x00012D1C File Offset: 0x00010F1C
 public static void DisableAllVisuals()
 {
     try
     {
         SpyManager.InvokePre();
         SpyManager.DestroyComponents();
     }
     catch
     {
     }
     if (LevelLighting.seaLevel == 0f)
     {
         LevelLighting.seaLevel = MiscOptions.Altitude;
     }
     try
     {
         UseableGun useableGun = Player.player.equipment.useable as UseableGun;
         if (useableGun != null)
         {
             WeaponComponent.UpdateCrosshair.Invoke(useableGun, null);
         }
         foreach (ItemGunAsset itemGunAsset in WeaponComponent.AssetBackups.Keys)
         {
             if (itemGunAsset != null)
             {
                 WeaponComponent.DisableHacks(itemGunAsset);
             }
         }
         WeaponComponent.AssetBackups.Clear();
     }
     catch
     {
     }
 }
コード例 #2
0
 // Token: 0x060001F1 RID: 497 RVA: 0x00012DF0 File Offset: 0x00010FF0
 public static void EnableAllVisuals()
 {
     try
     {
         SpyManager.AddComponents();
         SpyManager.InvokePost();
     }
     catch
     {
     }
 }