public static SQYMainController CreateMainView() { UnityEngine.Object obj = PrefabLoader.loadFromPack("SQY/pbSQYMainController"); if (obj != null) { GameObject go = Instantiate(obj) as GameObject; SQYMainController mv = go.GetComponent <SQYMainController>(); return(mv); } return(null); }
void LoadGameUI() { if (_mainViewCtl == null) { _mainViewCtl = SQYMainController.CreateMainView(); _mainViewCtl.vcID = VC_MAIN_ID; RED.AddChild(_mainViewCtl.gameObject, _bottomRoot); } if (_playerViewCtl == null) { _playerViewCtl = SQYPlayerController.CreatePlayerView(); _playerViewCtl.myPlayerViewBehaviour += this.OnBtnPlayerViewID; _playerViewCtl.vcID = VC_PLAYER_ID; RED.AddChild(_playerViewCtl.gameObject, _bottomRoot); } }
void Awake() { _mInstance = this; LELabels = new List <LabelEffect>(); }