public void ShowOnShopUserProfileDelayed(NodeAddedEvent e, SingleNode <ProfileScreenComponent> homeScreen, [JoinAll] UserWithIncompleteRegNode userWithIncompleteReg) { base.NewEvent <ShowScreenDownEvent <RegistrationScreenComponent> >().Attach(homeScreen).ScheduleDelayed(0f); }
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); } }
public void ShowOnMainScreen(NodeAddedEvent e, SingleNode <MainScreenComponent> homeScreen, UserWithIncompleteRegNode userWithIncompleteReg) { if (this.IsRegistartionTime(userWithIncompleteReg)) { base.NewEvent <DelayedShowRegistrationEvent>().Attach(homeScreen).ScheduleDelayed(0f); } }
public bool IsRegistartionTime(UserWithIncompleteRegNode userWithIncompleteReg) => userWithIncompleteReg.userIncompleteRegistration.FirstBattleDone;
public void DisableShop(NodeAddedEvent e, SingleNode <ShopComponent> homeScreen, [JoinAll] UserWithIncompleteRegNode userWithIncompleteReg) { MainScreenComponent.Instance.ShowMain(); }
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); }