NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/HeroSelect/HeroSelectManager.cs

32 lines
742 B
C#
Raw Normal View History

2025-03-27 15:46:09 +08:00
using Gameplay.Net;
using PhxhSDK;
namespace Gameplay.HeroSelect
{
/// <summary>
/// 角色选择管理器
/// </summary>
public sealed class HeroSelectManager : Singlenton<HeroSelectManager>
{
/// <summary>
/// 角色形象1id
/// </summary>
public const int HERO_ID_1 = 1;
/// <summary>
/// 角色形象2id
/// </summary>
public const int HERO_ID_2 = 1;
/// <summary>
/// 是否选择过角色
/// </summary>
public bool IsChangeHero
{
get
{
2025-03-27 16:05:17 +08:00
uint index = Actor.Instance.Base.GetProp(NLDPB.ActorProp.Avatar);
2025-03-27 15:46:09 +08:00
return 0 != index;
}
}
}
}