Beispiel #1
0
    public static TutorialPart GetNextTutorialPart()
    {
#if UNITY_EDITOR && BUILD_TYPE_DEBUG
        if (DebugOption.Instance.tutorialDO.forceTutorialPart != TutorialPart.NONE)
        {
            TutorialPart forceP = DebugOption.Instance.tutorialDO.forceTutorialPart;
            //            DebugOption.Instance.tutorialDO.forceTutorialPart = TutorialPart.NONE;

            Debug.Log("CALL GetNextTutorialPart force:" + forceP);
            return(forceP);
        }
#endif

        foreach (TutorialPart part in Enum.GetValues(typeof(TutorialPart)))
        {
            if (part == TutorialPart.NONE)
            {
                continue;
            }
#if BUILD_TYPE_DEBUG
            Debug.Log("CALL GetNextTutorialPart :" + part);
#endif
            if (!PP.GetPartState(part).IsSkipOrDone())
            {
#if BUILD_TYPE_DEBUG
                Debug.Log("CALL GetNextTutorialPart go:" + part);
#endif
                return(part);
            }
        }
#if BUILD_TYPE_DEBUG
        Debug.Log("CALL GetNextTutorialPart NONE");
#endif
        return(TutorialPart.NONE);
    }