using System; using UnityEngine; using UnityEngine.UI; namespace ET.Client { [EntitySystemOf(typeof(UILSRoomComponent))] [FriendOf(typeof (UILSRoomComponent))] public static partial class UILSRoomComponentSystem { [EntitySystem] private static void Awake(this UILSRoomComponent self) { ReferenceCollector rc = self.GetParent().GameObject.GetComponent(); GameObject replay = rc.Get("Replay"); GameObject play = rc.Get("Play"); self.frameText = rc.Get("progress").GetComponent(); Room room = self.Room(); if (room.IsReplay) { replay.SetActive(true); play.SetActive(false); self.totalFrame = rc.Get("framecount").GetComponent(); self.jumpToField = rc.Get("jumpToCount").GetComponent(); self.jump = rc.Get("jump").GetComponent