private void Start() { gameManager = GameObjectUtil.GetSingleton <GameManager>(); platformDetectionUtil = GameObjectUtil.GetSingleton <PlatformDetectionUtil>(); // If it's on a console don't show this GameObject if (platformDetectionUtil.GetPlatformDefinition().deviceType == DeviceType.Console) { GameObjectUtil.Destroy(gameObject); } }
public string GetText() { var replacement = ""; platformDetectionUtil = GameObjectUtil.GetSingleton <PlatformDetectionUtil>(); if (platformDetectionUtil.GetPlatformDefinition().hasController) { replacement += controllerText; } else if (platformDetectionUtil.GetPlatformDefinition().hasTouch || platformDetectionUtil.GetPlatformDefinition().hasMouse) { replacement += touchText; } else { replacement += keyboard; } return(continueText.Replace(inputToken, replacement)); }
private void Start() { //soundManager = GameObjectUtil.GetSingleton<SoundManager>(); platformDetectionUtil = GameObjectUtil.GetSingleton <PlatformDetectionUtil>(); //TODO need to add in way to save mute // If it's on a console don't show this GameObject if (platformDetectionUtil.GetPlatformDefinition().deviceType == DeviceType.Console) { GameObjectUtil.Destroy(gameObject); } UpdateLabel(); }