Example #1
0
    public void OnTutorial(InGameTutorialType type)
    {
        if (TutorialUI == null)
        {
            return;
        }

        if (type == InGameTutorialType.Skill_02)
        {
            if (TutorialUI.Condition != 1 && TutorialUI.CurInGameTuto != InGameTutorialType.Skill_01)
            {
                return;
            }
        }

        TutorialUI.OnInGameTutorial(type);
    }
    /// <summary> 요것은 인 게임용 </summary>
    public void OnInGameTutorial(InGameTutorialType type)
    {
        if (InGameDic == null || !InGameDic.ContainsKey(type) ||
            CurInGameTuto == type)
        {
            return;
        }

        System.Action call = null;

        IntroTutorial = _LowDataMgr.instance.GetLowDataFirstTutorial(1, (byte)type);
        InGameDic.TryGetValue(type, out call);

        if (call != null)
        {
            call();
        }

        CurInGameTuto  = type;
        NextInGameTuto = type + 1;
        InGameDic.Remove(type);//사용한 것은 재사용을 방지하기 위해 삭제함.
    }