示例#1
0
        public void Start()
        {
            mBackend = new IdleFantasyBackend();
            BackendManager.Init(mBackend);

            MyMessenger.AddListener <IAuthenticationSuccess>(BackendMessages.AUTH_SUCCESS, OnAuthenticationSucess);
            MyMessenger.AddListener(BackendMessages.CLOUD_SETUP_SUCCESS, OnCloudSetupSuccess);
            MyMessenger.AddListener <IBackendFailure>(BackendMessages.BACKEND_REQUEST_FAIL, OnBackendFailure);

            mBackend.Authenticate(ID);
        }