private void HandleDescriptionData(Data data) { dismissText.text = "- PRESS " + InputStringHelper.GetStringForInput(dismissInput) + " TO CONTINUE -"; if (PlatformUtil.GetPlatform() == Platform.XBOX_ONE) { description.text = ParseDescription(data.Info.xboxDescription); return; } description.text = ParseDescription(data.Info.defaultPromptDescription); }
private GameObject GetPrefab(PlatformDependentComponent component) { return(component.platformData.FirstOrDefault(p => p.platform == PlatformUtil.GetPlatform())?.prefab); }