Exemplo n.º 1
0
 public void InitSounds(NodeAddedEvent e, SoundListenerNode listener, UserReadyForLobbyNode user)
 {
     if (UISoundEffectController.UITransformRoot.gameObject.GetComponent <DailyBonusScreenSoundsRoot>() == null)
     {
         UISoundEffectController.UITransformRoot.gameObject.AddComponent <DailyBonusScreenSoundsRoot>().dailyBonusSoundsBehaviour = Object.Instantiate <DailyBonusSoundsBehaviour>(listener.soundListenerResources.Resources.DailyBonusSounds, UISoundEffectController.UITransformRoot.position, UISoundEffectController.UITransformRoot.rotation, UISoundEffectController.UITransformRoot);
     }
 }
Exemplo n.º 2
0
 public void ShowBattleSelect(NodeAddedEvent e, BattleSelectLoadScreenNode screen, UserReadyForLobbyNode user, [JoinAll] SelfUserNode selfUser, [JoinByUser] Optional <MountedWeaponNode> weapon, [JoinAll] SelfUserNode selfUser2, [JoinByUser] Optional <MountedHullNode> hull)
 {
     if (this.GetEffectiveLevel(weapon, hull) < BattleSelectSystem.TRAIN_BATTLE_MAXIMAL_RANK)
     {
         base.ScheduleEvent <ShowScreenNoAnimationEvent <MainScreenComponent> >(user);
     }
     else
     {
         base.ScheduleEvent(new ShowBattleEvent(screen.battleGroup.Key), EngineService.EntityStub);
     }
 }
Exemplo n.º 3
0
 public void ShowGarage(NodeAddedEvent e, SingleNode <ExitBattleToLobbyLoadScreenComponent> screen, UserReadyForLobbyNode user)
 {
     base.ScheduleEvent <ShowScreenNoAnimationEvent <MainScreenComponent> >(user);
     base.ScheduleEvent <GoBackFromBattleScreensEvent>(screen);
 }