示例#1
0
 public static LoginFade GetInstance()
 {
     if (instance == null)
     {
         instance = new LoginFade();
     }
     return(instance);
 }
示例#2
0
    public override void Execute(INotification notification)
    {
        string data = notification.Body as string;

        MachineCodeProxy codeProxy = (MachineCodeProxy)LoginFade.GetInstance().RetrieveProxy(MachineCodeProxy.NAME);

        codeProxy.CodeSubmit(data);
    }
示例#3
0
    public override void Execute(INotification notification)
    {
        Dictionary <string, string> dic = notification.Body as Dictionary <string, string>;

        string     userName   = dic["username"].ToString();
        string     password   = dic["password"].ToString();
        LoginProxy levelProxy = (LoginProxy)LoginFade.GetInstance().RetrieveProxy(LoginProxy.NAME);

        levelProxy.ToLogin(userName, password);
    }
    public override void Execute(INotification notification)
    {
        Dictionary <string, string> dic = notification.Body as Dictionary <string, string>;

        string telephone = dic["telephone"].ToString();
        string password  = dic["password"].ToString();
        string name      = dic["nickName"].ToString();
        string icon      = dic["icon"].ToString();
        string checkCode = dic["checkCode"].ToString();
        string userType  = dic["userType"].ToString();

        // NGUIDebug.Log(LoginFade.GetInstance().RetrieveProxy(RegisterProxy.NAME));
        RegisterProxy registerProxy = (RegisterProxy)LoginFade.GetInstance().RetrieveProxy(RegisterProxy.NAME);

        registerProxy.Register(telephone, password, name, icon, checkCode, userType);
    }
示例#5
0
 private void Start()
 {
     LoginFade.GetInstance().StartUp(gameObject);
     LoginerrorMessage.text = "";
 }