搭建pause和结算的UI界面,未装功能

重置gameplay的界面。
This commit is contained in:
17849571731
2025-07-11 15:39:40 +08:00
parent e8d84ec9ca
commit 450ef0f8a0
382 changed files with 99878 additions and 1262 deletions
@@ -4,7 +4,7 @@ using System.Collections;
namespace TMPro.Examples
{
public class Benchmark04 : MonoBehaviour
{
@@ -45,7 +45,7 @@ namespace TMPro.Examples
//textMeshPro.anchor = AnchorPositions.Left;
textMeshPro.rectTransform.pivot = new Vector2(0, 0.5f);
textMeshPro.enableWordWrapping = false;
textMeshPro.textWrappingMode = TextWrappingModes.NoWrap;
textMeshPro.extraPadding = true;
textMeshPro.isOrthographic = true;
textMeshPro.fontSize = i;
@@ -65,7 +65,7 @@ namespace TMPro.Examples
//if (lineHeight > orthoSize * 2 * 0.9f) return;
go.transform.position = m_Transform.position + new Vector3(ratio * -orthoSize * 0.975f, orthoSize * 0.975f - lineHeight, 1);
TextMesh textMesh = go.AddComponent<TextMesh>();
textMesh.font = Resources.Load("Fonts/ARIAL", typeof(Font)) as Font;
textMesh.renderer.sharedMaterial = textMesh.font.material;