예제 #1
0
    void OnSwitchPart()
    {
        TutorialPart part = GetNextTutorialPart();

#if UNITY_EDITOR && BUILD_TYPE_DEBUG
        Debug.Log("CALL TutorialManager#OnSwitchPart:" + part);

        DebugOption.Instance.tutorialDO.forceTutorialPart = TutorialPart.NONE;
#endif
        //メニューBGM再生
        switch (part)
        {
        case TutorialPart.BUILDUP:
        case TutorialPart.EDIT:
        case TutorialPart.NORMAL02:
            SoundUtil.PlayBGM(BGMManager.EBGM_ID.eBGM_2_1, false);
            break;
        }

        TutorialFSM.Instance.SendFsmEvent(part.ToString());
    }
예제 #2
0
 public void SetPartState(TutorialPart part, TutorialPartState state)
 {
     SetStr(string.Format(PART_STATE_KEY_FORMAT, part.ToString()), state.ToString());
 }
예제 #3
0
 public TutorialPartState GetPartState(TutorialPart part)
 {
     return(GetStr(string.Format(PART_STATE_KEY_FORMAT, part.ToString()), TutorialPartState.YET.ToString()).ToEnum <TutorialPartState>());
 }