コード例 #1
0
ファイル: HelperTextHandler.cs プロジェクト: LoD-Games/Solys
    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
ファイル: HelpButton.cs プロジェクト: LoD-Games/Solys
    void Start()
    {
        int activeScene = SceneManager.GetActiveScene().buildIndex;

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