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()); }
public void SetPartState(TutorialPart part, TutorialPartState state) { SetStr(string.Format(PART_STATE_KEY_FORMAT, part.ToString()), state.ToString()); }
public TutorialPartState GetPartState(TutorialPart part) { return(GetStr(string.Format(PART_STATE_KEY_FORMAT, part.ToString()), TutorialPartState.YET.ToString()).ToEnum <TutorialPartState>()); }