This commit is contained in:
YangHua 2024-03-07 16:17:21 +08:00
parent 457d8cc8d1
commit 811e11d53f
1 changed files with 14 additions and 14 deletions

View File

@ -59,15 +59,15 @@ public class PostureController : MonoBehaviour
if (distance >= 1120) if (distance >= 1120)
{ {
distance = 1120; distance = 1120;
currentCoroutine = null; //currentCoroutine = null;
return; return;
} }
satelliteImagery.orthographicSize = distance;
if (currentCoroutine == null) //if (currentCoroutine == null)
{ //{
isScale = true; // isScale = true;
currentCoroutine = StartCoroutine(Merge(distance)); // currentCoroutine = StartCoroutine(Merge(distance));
} //}
} }
private void OnDown() private void OnDown()
@ -77,15 +77,15 @@ public class PostureController : MonoBehaviour
if (distance <= 200f) if (distance <= 200f)
{ {
distance = 200f; distance = 200f;
currentCoroutine = null; //currentCoroutine = null;
return; return;
} }
satelliteImagery.orthographicSize = distance;
if (currentCoroutine == null) //if (currentCoroutine == null)
{ //{
isScale = true; // isScale = true;
currentCoroutine = StartCoroutine(Merge(distance)); // currentCoroutine = StartCoroutine(Merge(distance));
} //}
} }
private IEnumerator Merge(float targetPoint) private IEnumerator Merge(float targetPoint)