示例#1
0
 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);
 }
示例#2
0
    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);
        }
    }
示例#3
0
 void Awake()
 {
     _mInstance = this;
     LELabels   = new List <LabelEffect>();
 }