Example #1
0
    static public UIRegist GetInstance()
    {
        UIRegist self = UIManager.Singleton.GetUIWithoutLoad <UIRegist>();

        if (self != null)
        {
            return(self);
        }
        self = UIManager.Singleton.LoadUI <UIRegist>("UI/UIRegiste", UIManager.Anchor.Center);
        return(self);
    }
Example #2
0
    public override void OnInit()
    {
        base.OnInit();
        AddPropChangedNotify((int)MVCPropertyID.enLogin, OnPropertyChanged);

        m_gameStart = FindChild("GameStart");
        m_login     = UILogin.GetInstance();
        m_regist    = UIRegist.GetInstance();

        m_login.SetParent(WindowRoot);
        m_regist.SetParent(WindowRoot);

        m_login.HideWindow();
        m_regist.HideWindow();
    }