Files
Fishing2/Assets/Scripts/Fishing/New/Data/Item/PlayerItem.cs
Bob.Song cf2e374998 修改
2026-03-10 16:03:38 +08:00

33 lines
747 B
C#

using System.Collections.Generic;
using Fantasy;
using Fantasy.Entitas;
using NBF.Utils;
namespace NBF
{
/// <summary>
/// 玩家物品
/// </summary>
public abstract class PlayerItem : Entity
{
public Player Owner;
/// <summary>
/// 配置id
/// </summary>
public int ConfigID;
public virtual void Init(Player player, ItemInfo bindInfo)
{
Owner = player;
ConfigID = bindInfo.ConfigId;
// var itemType = bindInfo.Item.GetItemType();
// if (itemType == ItemType.Rod)
// {
// var rod = AddComponent<PlayerItemRod>();
// rod.Init(bindInfo);
// }
}
}
}