summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs
new file mode 100644
index 00000000..8b855f85
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs
@@ -0,0 +1,40 @@
+using System;
+using UnityEngine;
+
+namespace XMainClient.UI
+{
+ public class GuildArenaBattleDuelInfo
+ {
+ private Transform transfrom;
+
+ public GuildArenaBattleDuelTeamInfo BlueInfo;
+
+ public GuildArenaBattleDuelTeamInfo RedInfo;
+
+ public void Init(Transform t)
+ {
+ this.transfrom = t;
+ this.BlueInfo = new GuildArenaBattleDuelTeamInfo();
+ this.BlueInfo.Init(this.transfrom.Find("Blue"));
+ this.RedInfo = new GuildArenaBattleDuelTeamInfo();
+ this.RedInfo.Init(this.transfrom.Find("Red"));
+ }
+
+ public void SetVisible(bool active)
+ {
+ this.transfrom.gameObject.SetActive(active);
+ }
+
+ public void Reset()
+ {
+ this.BlueInfo.Reset();
+ this.RedInfo.Reset();
+ }
+
+ public void Destroy()
+ {
+ this.BlueInfo = null;
+ this.RedInfo = null;
+ }
+ }
+}