using System; using System.Collections.Generic; using System.Threading.Tasks; using UnityEngine; using UnityEngine.UI; using static System.Net.Mime.MediaTypeNames; namespace ET.Client { [FriendOf(typeof(UIAvtiveComponent))] public static class UIAvtiveComponentSystem { [ObjectSystem] public class UIAvtiveComponentAwakeSystem : AwakeSystem { protected override void Awake(UIAvtiveComponent self, params object[] param) { ReferenceCollector rc = self.GetParent().GameObject.GetComponent(); self.noWeijinObj = rc.Get("noWeijinObj"); self.greenObj = rc.Get("greenObj"); self.noFanObj = rc.Get("noFanObj"); self.zhaoMuObj = rc.Get("zhaoMuObj"); self.noDuObj = rc.Get("noDuObj"); self.leftImage.Clear(); for (int i = 1;i <= 5;i++) { int index = i; var btn = rc.Get("leftBtn" + i); btn.GetComponent