blob: 4886f7e46579fb4e02fbc4ae85a1f67f50193f1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
using UnityEngine;
using XUtliPoolLib;
public class XUIScript : MonoBehaviour
{
private IXGameUI _game_ui = null;
void Awake ()
{
_game_ui = XInterfaceMgr.singleton.GetInterface<IXGameUI>(XCommon.singleton.XHash("XGameUI"));
_game_ui.UICamera = gameObject.GetComponent<Camera>();
Transform uiRoot = transform.parent;
_game_ui.UIRoot = uiRoot;
UIRoot nguiRoot = uiRoot.GetComponent<UIRoot>();
_game_ui.Base_UI_Width = nguiRoot.base_ui_width;
_game_ui.Base_UI_Height = nguiRoot.base_ui_height;
XUICommon.singleton.Init(uiRoot);
}
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
|