mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +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);
|
||||
if (loadedTexture)
|
||||
this.baseTexture = loadedTexture;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
Texture[] textureItems = usedTextures.Items;
|
||||
for (int i = 0, count = usedTextures.Count; i < count; ++i) {
|
||||
Texture loadedTexture = null;
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user