예제 #1
0
    private void Start()
    {
        int activeScene = SceneManager.GetActiveScene().buildIndex;

        GetComponent <Helper>().tips = LeanLocalization.CurrentLanguage == "Russian" ? HelperTextData.GetRussian(activeScene) : HelperTextData.GetEnglish(activeScene);
        bool isShowed =
            PlayerPrefsUtility.GetEncryptedInt("HelperShowedAtLevel" + activeScene) == 1;

        if (!isShowed || HelperTextData.GetRussian(activeScene).Length == 0)
        {
            GetComponent <Helper>().ShowTipAgain();
        }
        else
        {
            GetComponent <Helper>().CloseTips();
        }
    }
예제 #2
0
    void Start()
    {
        int activeScene = SceneManager.GetActiveScene().buildIndex;

        GetComponent <Button>().interactable = HelperTextData.GetRussian(activeScene).Length != 0;
    }