private bool onAcceptChallengeClickEvent(CatalogUIEvents.AcceptChallengeClickedEvent evt) { challengeTheme = evt.Theme; showCatalogCustomizer = true; ClothingDesignerContext.EventBus.DispatchEvent(new ClothingDesignerEvents.UpdateClothingDesignerTheme(evt.ThemeColors)); ClothingDesignerContext.EventBus.DispatchEvent(default(ClothingDesignerUIEvents.ChangeStateCustomizer)); hideCatalog(); return(false); }
private bool onAcceptChallengeClicked(CatalogUIEvents.AcceptChallengeClickedEvent evt) { challengeHeaderImage.gameObject.SetActive(value: true); if (evt.Theme != null && evt.Theme.Title != null) { if (evt.Theme.Title != null) { challengeHeaderText.text = Service.Get <Localizer>().GetTokenTranslation(evt.Theme.Title); } challengeHeaderImage.color = evt.ThemeColors[1]; } return(false); }