_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/DurationPlane.cs

39 lines
794 B
C#
Raw Normal View History

2024-12-11 16:17:18 +08:00
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class DurationPlane : Base
{
public TextMeshProUGUI Time;
public TextMeshProUGUI BUttonTxt;
public int timer = 0;
public Button PointButton;
// Start is called before the first frame update
void Start()
{
PointButton.onClick.AddListener(() =>
{
if (timer != 4)
{
timer++;
}
if (timer == 4)
{
timer = 0;
Global.global.scene_Main_Jiekou.getPlayerInfo();
}
BUttonTxt.text = $"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> {timer}/4";
});
}
// Update is called once per frame
void Update()
{
}
}