战斗场景UI修改
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user