mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Minor: formatting fixes.
This commit is contained in:
parent
8bc1201b83
commit
ca06a5a7f6
@ -970,8 +970,7 @@ namespace Spine.Unity {
|
|||||||
atlasAsset.RequireTextureLoaded(this.mainTexture, ref loadedTexture, null);
|
atlasAsset.RequireTextureLoaded(this.mainTexture, ref loadedTexture, null);
|
||||||
if (loadedTexture)
|
if (loadedTexture)
|
||||||
this.baseTexture = loadedTexture;
|
this.baseTexture = loadedTexture;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
Texture[] textureItems = usedTextures.Items;
|
Texture[] textureItems = usedTextures.Items;
|
||||||
for (int i = 0, count = usedTextures.Count; i < count; ++i) {
|
for (int i = 0, count = usedTextures.Count; i < count; ++i) {
|
||||||
Texture loadedTexture = null;
|
Texture loadedTexture = null;
|
||||||
|
|||||||
@ -167,7 +167,7 @@ namespace Spine.Unity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override void LateUpdate () {
|
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();
|
UpdateAnimation();
|
||||||
// instantiation can happen from Update() after this component, leading to a missing Update() call.
|
// instantiation can happen from Update() after this component, leading to a missing Update() call.
|
||||||
if (!wasUpdatedAfterInit) Update();
|
if (!wasUpdatedAfterInit) Update();
|
||||||
|
|||||||
@ -261,7 +261,7 @@ namespace Spine.Unity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected virtual Texture RequestLoadTexture (Material material, int materialIndex, int textureIndex,
|
protected virtual Texture RequestLoadTexture (Material material, int materialIndex, int textureIndex,
|
||||||
System.Action<Texture> onTextureLoaded) {
|
System.Action<Texture> onTextureLoaded) {
|
||||||
|
|
||||||
PlaceholderTextureMapping[] placeholderTextures = placeholderMap[materialIndex].textures;
|
PlaceholderTextureMapping[] placeholderTextures = placeholderMap[materialIndex].textures;
|
||||||
TargetReference targetReference = placeholderTextures[textureIndex].targetTextureReference;
|
TargetReference targetReference = placeholderTextures[textureIndex].targetTextureReference;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user