public void InitScreen(NodeAddedEvent e, ScreenNode screen, [JoinAll] SingleNode <CountriesComponent> countries, [JoinAll] UserWithCountryNode country) { List <KeyValuePair <string, string> > list = new List <KeyValuePair <string, string> >(); foreach (KeyValuePair <string, string> pair in countries.component.Names) { if (pair.Key != "TR") { list.Add(pair); } } if (< > f__am$cache0 == null) {
public void InitChangeCountryButton(NodeAddedEvent e, SingleNode <OpenSelectCountryButtonComponent> button, UserWithCountryNode country) { if ((country.userCountry.CountryCode == "RU") || (country.userPublisher.Publisher == Publisher.CONSALA)) { base.NewEvent <DisableCountryButtonEvent>().Attach(button).ScheduleDelayed(0f); } button.component.CountryCode = country.userCountry.CountryCode; }