狗屎Minimax坏我代码
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user