using FairyGUI; using UnityEngine; namespace ET.Client { [ObjectSystem] public class GlobalViewAwakeSystem : AwakeSystem { protected override void Awake(GlobalViewComponent self) { GlobalViewComponent.Instance = self; self.Global = GameObject.Find("/Global").transform; self.Unit = GameObject.Find("/Global/Unit").transform; self.RecycleNode = GameObject.Find("/Global/RecycleNode").transform; self.BattleCamera = GameObject.Find("/Global/BattleCamera").GetComponent(); //self.UICamera = GameObject.Find("/Global/UICamera").GetComponent(); /*var uiContentScale = self.Global.GetComponent(); uiContentScale.scaleMode = UIContentScaler.ScaleMode.ScaleWithScreenSize; uiContentScale.designResolutionX = 1600; uiContentScale.designResolutionY = 2500; uiContentScale.screenMatchMode = UIContentScaler.ScreenMatchMode.MatchWidthOrHeight;*/ } } }