コード例 #1
0
    public void SnapAction(object name)
    {
        TropheeInfo trophee = TropheesManager.Instance.GetTropheeByName(name.ToString());

        if (trophee && name.ToString() == trophee.Name)
        {
            StartCoroutine("ChangeScene", trophee.Level);
        }
    }
コード例 #2
0
ファイル: SupportCode.cs プロジェクト: redwappin/EscapeGame
    private void UnLockNextLevelTrophee()
    {
        // Get active scene and unlock nex level trophee
        Scene       scene            = SceneManager.GetActiveScene();
        TropheeInfo trophee          = TropheesManager.Instance.GetTropheeByLevel(scene.name);
        TropheeInfo nextLevelTrophee = TropheesManager.Instance.GetTropheeByLevelNumber(trophee.LevelNumber + 1);

        if (nextLevelTrophee)
        {
            nextLevelTrophee.IsLocked = false;
        }
    }