예제 #1
0
        void Start()
        {
            mBackend = new QwfBackend();
            //BackendManager.Init( mBackend );

            MyMessenger.AddListener(BackendMessages.LOGIN_SUCCESS, OnLoginSuccess);
            MyMessenger.AddListener <IBackendFailure>(BackendMessages.BACKEND_REQUEST_FAIL, OnBackendFailure);

            LoginStatusText.text = STATUS_WAITING_TO_CHOOSE;
        }
예제 #2
0
        void Start()
        {
            IBackend playFabBackend = new IdleFantasyBackend();

            MyMessenger.AddListener(BackendMessages.LOGIN_SUCCESS, OnLogin);

            Login login = new Login(playFabBackend, new EmptyAnalyticsTimer());

            login.Start();
        }
예제 #3
0
        public void Start()
        {
            MyMessenger.AddListener <IAuthenticationSuccess>(BackendMessages.AUTH_SUCCESS, OnAuthenticationSucess);
            MyMessenger.AddListener <IBackendFailure>(BackendMessages.BACKEND_REQUEST_FAIL, OnBackendFailure);

            mLoginTimer.Start();

            mBackend.Authenticate(mLoginID);
            //mBackend.Authenticate( SystemInfo.deviceUniqueIdentifier );
            //mBackend.Authenticate( TestUsers.FOUR );
        }
예제 #4
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);
        }
예제 #5
0
        void Start()
        {
            mBackend = new IdleFantasyBackend();
            BackendManager.Init(mBackend);

            MyMessenger.AddListener(BackendMessages.LOGIN_SUCCESS, OnLoginSuccess);
            MyMessenger.AddListener <IBackendFailure>(BackendMessages.BACKEND_REQUEST_FAIL, OnBackendFailure);

            LoginStatusText.text = STATUS_CONNECTING;

            mLogin = new Login(mBackend, mLoginTimer);
            mLogin.Start();
        }
예제 #6
0
 private void SubscribeToMessages()
 {
     MyMessenger.AddListener <int>(MissionKeys.UNIT_SELECTED_EVENT, OnUnitSelected);
 }
예제 #7
0
 public MyLogger() {
     MyMessenger.AddListener<LogTypes, string, string>( LOG_EVENT, LogWithCategory );
 }
예제 #8
0
 public IntegrationTestLogger()
 {
     MyMessenger.AddListener <LogTypes, string, string>(MyLogger.LOG_EVENT, LogWithCategory);
 }
예제 #9
0
 private void SubscribeToMessages()
 {
     MyMessenger.AddListener(MapKeys.TRAVEL_TO_SUCCESS, OnTravelSuccess);
 }
예제 #10
0
 private void SubscribeToMessages()
 {
     MyMessenger.AddListener <MissionData>(MissionKeys.MISSION_CLIENT_COMPLETE_PROCESSED, OnMissionCompleted);
 }
예제 #11
0
 private void SubscribeToMessages()
 {
     MyMessenger.AddListener <string>(UnitKeys.UNLOCK_EVENT, OnUnitUnlocked);
 }
예제 #12
0
 private void SubscribeToMessages()
 {
     MyMessenger.AddListener <int>(MapKeys.TRAVEL_TO_REQUEST, OnTravelToSelected);
     MyMessenger.AddListener(CLOSE_MAP_MESSAGE, CloseMap);
 }
예제 #13
0
 private void SubscribeToMessages()
 {
     MyMessenger.AddListener(MapKeys.TRAVEL_TO_SUCCESS, OnTravelSuccess);
     MyMessenger.AddListener(OPEN_MAP_MESSAGE, CreateMapView);
 }
예제 #14
0
 private void SubscribeToMessages()
 {
     EasyMessenger.Instance.AddListener <ITrainerManager>(TrainerManager.AVAILABLE_TRAINERS_EVENT, OnTrainersChanged);
     MyMessenger.AddListener <string>(Tutorial.TUTORIAL_FINISHED, OnTutorialFinished);
 }
예제 #15
0
 private void SubscribeToMessages()
 {
     MyMessenger.AddListener <int>(MapKeys.TRAVEL_TO_REQUEST, OnTravelToSelected);
 }