using FairyGUI;
using UnityEngine;

namespace ET.Client
{
    [ObjectSystem]
    public class GlobalViewMgr : Singleton<GlobalViewMgr>, ISingletonAwake
    {
        //public Camera UICamera;
        public Camera BattleCamera;
        public Transform Global;
        public Transform Unit { get; set; }
        public Transform RecycleNode { get; set; }
        public GComponent HeadbarView { get; set; }

        public void Awake()
        {
            Global = GameObject.Find( "/Global" ).transform;
            Unit = GameObject.Find( "/Global/Unit" ).transform;
            RecycleNode = GameObject.Find( "/Global/RecycleNode" ).transform;

            BattleCamera = GameObject.Find( "/Global/BattleCamera" ).GetComponent<Camera>();
            CameraMgr.Init();
            //self.UICamera = GameObject.Find("/Global/UICamera").GetComponent<Camera>();

            /*var uiContentScale = self.Global.GetComponent<UIContentScaler>();
            uiContentScale.scaleMode = UIContentScaler.ScaleMode.ScaleWithScreenSize;
            uiContentScale.designResolutionX = 1600;
            uiContentScale.designResolutionY = 2500;
            uiContentScale.screenMatchMode = UIContentScaler.ScreenMatchMode.MatchWidthOrHeight;*/
        }
    }
}