Esempio n. 1
0
 protected override void OnViewLoaded()
 {
     base.OnViewLoaded();
     Debug.Log("登录界面已加载");
     ViewMgr.GetInst().MarkAsDontGC(TarView, true);
     OnViewShow(null);
 }
Esempio n. 2
0
 public static ViewMgr GetInst(int w, int h)
 {
     if (_inst == null)
     {
         _inst = Construct(w, h);
     }
     return(_inst);
 }
Esempio n. 3
0
    void Start()
    {
        var cor = CoroutineWrapper.Inst;

        ViewMgr.GetInst(1920, 1080);
        ViewMgr.GetInst().ShowView(null, "StartView", null);

        var v = ViewMgr.GetInst().PeekTop();

        ControllerMgr.GetInst.TryBindAndRegController <StartViewCtrl>(v);
    }
Esempio n. 4
0
 void OnDestroy()
 {
     viewStack.Clear();
     _inst = null;
 }
Esempio n. 5
0
 void Awake()
 {
     _inst = this;
     tran  = transform;
 }
 protected override void InitializeInterfaces()
 {
     Mgr = new ViewMgr();
 }