Эх сурвалжийг харах

[unity] Minor: formatting fixes.

Harald Csaszar 1 жил өмнө
parent
commit
ca06a5a7f6

+ 1 - 2
spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs

@@ -970,8 +970,7 @@ namespace Spine.Unity {
 						atlasAsset.RequireTextureLoaded(this.mainTexture, ref loadedTexture, null);
 						if (loadedTexture)
 							this.baseTexture = loadedTexture;
-					}
-					else {
+					} else {
 						Texture[] textureItems = usedTextures.Items;
 						for (int i = 0, count = usedTextures.Count; i < count; ++i) {
 							Texture loadedTexture = null;

+ 1 - 1
spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs

@@ -167,7 +167,7 @@ namespace Spine.Unity {
 		}
 
 		public override void LateUpdate () {
-			if (updateTiming == UpdateTiming.InLateUpdate && valid &&  translator != null && translator.Animator != null)
+			if (updateTiming == UpdateTiming.InLateUpdate && valid && translator != null && translator.Animator != null)
 				UpdateAnimation();
 			// instantiation can happen from Update() after this component, leading to a missing Update() call.
 			if (!wasUpdatedAfterInit) Update();

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

@@ -261,7 +261,7 @@ namespace Spine.Unity {
 		}
 
 		protected virtual Texture RequestLoadTexture (Material material, int materialIndex, int textureIndex,
-			System.Action<Texture>  onTextureLoaded) {
+			System.Action<Texture> onTextureLoaded) {
 
 			PlaceholderTextureMapping[] placeholderTextures = placeholderMap[materialIndex].textures;
 			TargetReference targetReference = placeholderTextures[textureIndex].targetTextureReference;