[unity] Minor: formatting fixes.

This commit is contained in:
Harald Csaszar 2023-10-06 19:18:45 +02:00
parent 8bc1201b83
commit ca06a5a7f6
3 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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;