浏览代码

[unity] Minor: Formatting changes of last commit 76e8538. See #1890.

Harald Csaszar 2 年之前
父节点
当前提交
e4721a8cf3

+ 1 - 1
spine-unity/Modules/com.esotericsoftware.spine.addressables/Editor/AddressablesTextureLoaderInspector.cs

@@ -73,7 +73,7 @@ namespace Spine.Unity.Editor {
 			}
 		}
 
-#region Context Menu Item
+		#region Context Menu Item
 		[MenuItem("CONTEXT/AtlasAssetBase/Add Addressables Loader")]
 		static void AddAddressablesLoader (MenuCommand cmd) {
 			if (staticMethods == null)

+ 1 - 1
spine-unity/Modules/com.esotericsoftware.spine.on-demand-loading/Editor/GenericOnDemandTextureLoaderInspector.cs

@@ -232,7 +232,7 @@ namespace Spine.Unity.Editor {
 			loader = (GenericOnDemandTextureLoader<TargetReference, TextureRequest>)target;
 
 			if (staticMethods == null)
-				staticMethods = CreateStaticMethodImplementations ();
+				staticMethods = CreateStaticMethodImplementations();
 		}
 
 #if NEWPLAYMODECALLBACKS

+ 3 - 4
spine-unity/Modules/com.esotericsoftware.spine.on-demand-loading/Runtime/GenericOnDemandTextureLoader.cs

@@ -119,7 +119,7 @@ namespace Spine.Unity {
 				if (materialIndex >= placeholderMap.Length) {
 					Debug.LogError(string.Format("Failed to assign placeholder textures at {0}, material #{1} {2}. " +
 						"It seems like the GenericOnDemandTextureLoader asset was not setup accordingly for the AtlasAsset.",
-						atlasAsset, materialIndex+1, targetMaterial), this);
+						atlasAsset, materialIndex + 1, targetMaterial), this);
 					return false;
 				}
 				Texture activeTexture = targetMaterial.mainTexture;
@@ -139,8 +139,7 @@ namespace Spine.Unity {
 					Debug.LogWarning(string.Format("Placeholder texture set to null at {0}, for material #{1} {2}. " +
 						"It seems like the GenericOnDemandTextureLoader asset was not setup accordingly for the AtlasAsset.",
 						atlasAsset, materialIndex + 1, targetMaterial), this);
-				}
-				else {
+				} else {
 					targetMaterial.mainTexture = placeholderTexture;
 				}
 				++materialIndex;
@@ -258,7 +257,7 @@ namespace Spine.Unity {
 
 		public abstract Texture GetAlreadyLoadedTexture (int materialIndex, int textureIndex);
 
-		public abstract void CreateTextureRequest(TargetReference targetReference,
+		public abstract void CreateTextureRequest (TargetReference targetReference,
 			MaterialOnDemandData materialData, int textureIndex, Material materialToUpdate);
 
 		public virtual void UnloadUnusedTextures () {