From 31b48382a5ff0c507a234721a6e9c506959aa6ae Mon Sep 17 00:00:00 2001 From: pharan Date: Wed, 15 Aug 2018 00:01:37 +0800 Subject: [PATCH] [unity] Minor formatting. --- .../SkeletonGraphic/SkeletonGraphicMirror.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Modules/SkeletonGraphic/SkeletonGraphicMirror.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Modules/SkeletonGraphic/SkeletonGraphicMirror.cs index 8fa89962b..dae92d141 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Modules/SkeletonGraphic/SkeletonGraphicMirror.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Modules/SkeletonGraphic/SkeletonGraphicMirror.cs @@ -1,4 +1,4 @@ -/****************************************************************************** +/****************************************************************************** * Spine Runtimes Software License v2.5 * * Copyright (c) 2013-2016, Esoteric Software @@ -49,7 +49,8 @@ namespace Spine.Unity.Modules { } void Start () { - if (mirrorOnStart) StartMirroring(); + if (mirrorOnStart) + StartMirroring(); } void LateUpdate () { @@ -57,13 +58,16 @@ namespace Spine.Unity.Modules { } void OnDisable () { - if (restoreOnDisable) RestoreIndependentSkeleton(); + if (restoreOnDisable) + RestoreIndependentSkeleton(); } /// Freeze the SkeletonGraphic on this GameObject, and use the source as the Skeleton to be rendered by the SkeletonGraphic. public void StartMirroring () { - if (source == null) return; - if (skeletonGraphic == null) return; + if (source == null) + return; + if (skeletonGraphic == null) + return; skeletonGraphic.startingAnimation = string.Empty;