战斗场景UI修改

This commit is contained in:
YiHan0621
2025-08-29 16:34:49 +08:00
parent efd64359a7
commit 12eb732b3c
17 changed files with 590 additions and 651 deletions

View File

@@ -27,6 +27,9 @@ namespace TcgEngine.UI
public Animator timeout_animator;
public AudioClip timeout_audio;
public Text player_prompt_text;
public Text opponent_prompt_text;
private float selector_timer = 0f;
private float end_turn_timer = 0f;
private int prev_time_val = 0;
@@ -76,7 +79,12 @@ namespace TcgEngine.UI
end_turn_button.interactable = yourturn && end_turn_timer > 1f;
end_turn_timer += Time.deltaTime;
selector_timer += Time.deltaTime;
// 提示玩家
player_prompt_text.text = yourturn ? "正在行动" : "正在等待";
opponent_prompt_text.text = yourturn ? "正在等待" : "正在行动";
//Timer
turn_count.text = "回合 " + data.turn_count.ToString();
turn_timer.enabled = data.turn_timer > 0f;