狗屎Minimax坏我代码

This commit is contained in:
SoulliesOfficial
2026-04-18 13:57:19 -04:00
parent 41140a2017
commit 7379583165
473 changed files with 34480 additions and 8069 deletions

View File

@@ -1,12 +1,9 @@
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
using SickscoreGames;
namespace SickscoreGames.HUDNavigationSystem
{
@@ -45,7 +42,7 @@ namespace SickscoreGames.HUDNavigationSystem
public static void InitTextureCreator ()
{
// find / instantiate TextureCreator
HNSTextureCreator textureCreator = FindObjectOfType<HNSTextureCreator> ();
HNSTextureCreator textureCreator = HUDNavigationExtensions.FindFirst<HNSTextureCreator> ();
if (textureCreator == null)
textureCreator = new GameObject ("HNS MapTextureCreator").AddComponent<HNSTextureCreator> ();
@@ -270,6 +267,10 @@ namespace SickscoreGames.HUDNavigationSystem
if (textureImporter.textureType != TextureImporterType.Sprite)
textureImporter.textureType = TextureImporterType.Sprite;
// set sprite mode to single
if (textureImporter.spriteImportMode != SpriteImportMode.Single)
textureImporter.spriteImportMode = SpriteImportMode.Single;
// update texture size
if (textureImporter.maxTextureSize != (int)TextureSize)
textureImporter.maxTextureSize = (int)TextureSize;