Exemplo n.º 1
0
 public void ShowOnShopUserProfileDelayed(NodeAddedEvent e, SingleNode <ProfileScreenComponent> homeScreen, [JoinAll] UserWithIncompleteRegNode userWithIncompleteReg)
 {
     base.NewEvent <ShowScreenDownEvent <RegistrationScreenComponent> >().Attach(homeScreen).ScheduleDelayed(0f);
 }
Exemplo n.º 2
0
 public void ShowOnMainScreenDelayed(DelayedShowRegistrationEvent e, SingleNode <MainScreenComponent> homeScreen, [JoinAll] UserWithIncompleteRegNode userWithIncompleteReg, [JoinAll] ICollection <SingleNode <ActiveNotificationComponent> > activeNotifications)
 {
     if (this.IsRegistartionTime(userWithIncompleteReg) && (activeNotifications.Count == 0))
     {
         base.NewEvent <ShowScreenDownEvent <RegistrationScreenComponent> >().Attach(homeScreen).ScheduleDelayed(0f);
     }
 }
Exemplo n.º 3
0
 public void ShowOnMainScreen(NodeAddedEvent e, SingleNode <MainScreenComponent> homeScreen, UserWithIncompleteRegNode userWithIncompleteReg)
 {
     if (this.IsRegistartionTime(userWithIncompleteReg))
     {
         base.NewEvent <DelayedShowRegistrationEvent>().Attach(homeScreen).ScheduleDelayed(0f);
     }
 }
Exemplo n.º 4
0
 public bool IsRegistartionTime(UserWithIncompleteRegNode userWithIncompleteReg) =>
 userWithIncompleteReg.userIncompleteRegistration.FirstBattleDone;
Exemplo n.º 5
0
 public void DisableShop(NodeAddedEvent e, SingleNode <ShopComponent> homeScreen, [JoinAll] UserWithIncompleteRegNode userWithIncompleteReg)
 {
     MainScreenComponent.Instance.ShowMain();
 }
Exemplo n.º 6
0
 public void Complete(ButtonClickEvent e, SingleNode <BackButtonComponent> user, [JoinAll] SingleNode <RegistrationScreenComponent> screen, [JoinAll] UserWithIncompleteRegNode userWithIncompleteReg)
 {
     MainScreenComponent.Instance.ShowMain();
     base.NewEvent <ShowScreenDownEvent <HomeScreenComponent> >().Attach(screen).ScheduleDelayed(0f);
 }