Пример #1
0
 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);
     }
 }
Пример #2
0
    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();
    }
Пример #3
0
    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));
    }