Inheritance: MonoSingleton
 void Start()
 {
     loginService = FindObjectOfType<LoginService>();
     loginService.OnLoginSuccess += LoginSuccessEventHandler;
     webSocketService = FindObjectOfType<WebSocketService>();
     webSocketService.RegisterCommand(LootItemsDTO.COMMAND_NAME, LootItemsCallback, typeof(LootItemsDTO));
 }
 void Start()
 {
     webSocketService = FindObjectOfType<WebSocketService>();
     webSocketService.RegisterCommand(GameConfigUpdateDTO.COMMAND_NAME, GameConfigUpdateCallback, typeof(GameConfigUpdateDTO));
     webSocketService.RegisterCommand(ComboHitSequenceUpdateDTO.COMMAND_NAME, ComboHitSequenceUpdateCallback, typeof(ComboHitSequenceUpdateDTO));
     comboHitSequenceFactory = new ComboHitSequenceFactory();
     CreateRandomHitSequences();
 }
 void Start()
 {
     loginService = FindObjectOfType<LoginService>();
     loginService.OnLoginSuccess += LoginSuccessCallback;
     webSocketService = FindObjectOfType<WebSocketService>();
     gameControlService = FindObjectOfType<GameControlService>();
     webSocketService.RegisterCommand(PlayerLevelUpDTO.COMMAND_NAME, PlayerLevelUpCallback, typeof(PlayerLevelUpDTO));
     InvokeRepeating("UploadExperiencePointsToServer", 5, 5);
 }
 void Start()
 {
     gameStatisticsService = FindObjectOfType<GameStatisticsService>();
     webSocketService = FindObjectOfType<WebSocketService>();
     webSocketService.RegisterCommand(BossStatusUpdateDTO.COMMAND_NAME, BossStatusUpdateCallback, typeof(BossStatusUpdateDTO));
 }
 void Start()
 {
     httpService = FindObjectOfType<HttpService>();
     webSocketService = FindObjectOfType<WebSocketService>();
     webSocketService.RegisterCommand(GameConfigUpdateDTO.COMMAND_NAME, GameConfigUpdateCallback, typeof(GameConfigUpdateDTO));
 }
 void Start()
 {
     webSocketService = FindObjectOfType<WebSocketService>();
     webSocketService.AddOutboundInterceptor(this, typeof(BossAttackDTO));
     webSocketService.AddInboundInterceptor(this, typeof(BossStatusUpdateDTO));
 }
Exemplo n.º 7
0
 void Start()
 {
     httpService = FindObjectOfType<HttpService>();
     webSocketService = FindObjectOfType<WebSocketService>();
 }