NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/Debug/SROptions.Guide.cs

42 lines
910 B
C#
Raw Normal View History

2024-06-26 17:20:52 +08:00
using System.Collections.Generic;
using System.ComponentModel;
using Gameplay;
using Gameplay.Character;
2024-06-27 13:35:52 +08:00
using Gameplay.Guide;
2024-06-26 17:20:52 +08:00
using Gameplay.Level;
using Gameplay.Net;
using Gameplay.SubSystems;
using UnityEngine;
public partial class SROptions
{
private int guideGroupId = 0;
[Category("新手引导"), DisplayName("引导组id")]
public int GuideGroupId
{
get { return guideGroupId; }
set { guideGroupId = value; }
}
[Category("新手引导"), DisplayName("设置完成的引导组id")]
public void SaveGuide()
{
NetHelper.SaveGuideProgress((uint)GuideGroupId);
}
2024-06-27 13:35:52 +08:00
[Category("新手引导"), DisplayName("跳过引导")]
public void SkipGuide()
{
if (GuideManager.Instance.IsGuiding)
{
2024-06-27 14:13:22 +08:00
NetHelper.SaveGuideProgress(int.MaxValue);
2024-06-27 13:35:52 +08:00
GuideManager.Instance.EndGuide(true);
}
}
2024-06-26 17:20:52 +08:00
}