mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Minor formatting.
This commit is contained in:
parent
c3fb8cb962
commit
31b48382a5
@ -1,4 +1,4 @@
|
|||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Spine Runtimes Software License v2.5
|
* Spine Runtimes Software License v2.5
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013-2016, Esoteric Software
|
* Copyright (c) 2013-2016, Esoteric Software
|
||||||
@ -49,7 +49,8 @@ namespace Spine.Unity.Modules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Start () {
|
void Start () {
|
||||||
if (mirrorOnStart) StartMirroring();
|
if (mirrorOnStart)
|
||||||
|
StartMirroring();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LateUpdate () {
|
void LateUpdate () {
|
||||||
@ -57,13 +58,16 @@ namespace Spine.Unity.Modules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void OnDisable () {
|
void OnDisable () {
|
||||||
if (restoreOnDisable) RestoreIndependentSkeleton();
|
if (restoreOnDisable)
|
||||||
|
RestoreIndependentSkeleton();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Freeze the SkeletonGraphic on this GameObject, and use the source as the Skeleton to be rendered by the SkeletonGraphic.</summary>
|
/// <summary>Freeze the SkeletonGraphic on this GameObject, and use the source as the Skeleton to be rendered by the SkeletonGraphic.</summary>
|
||||||
public void StartMirroring () {
|
public void StartMirroring () {
|
||||||
if (source == null) return;
|
if (source == null)
|
||||||
if (skeletonGraphic == null) return;
|
return;
|
||||||
|
if (skeletonGraphic == null)
|
||||||
|
return;
|
||||||
|
|
||||||
skeletonGraphic.startingAnimation = string.Empty;
|
skeletonGraphic.startingAnimation = string.Empty;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user