26 lines
559 B
C#
26 lines
559 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace NBF
|
|
{
|
|
public abstract class PlayerItem : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 配置id
|
|
/// </summary>
|
|
public int ConfigID;
|
|
|
|
public List<int> BindItems = new List<int>();
|
|
|
|
public Player Owner;
|
|
|
|
|
|
public virtual void Init(Player player, int configId, List<int> bindItems)
|
|
{
|
|
Owner = player;
|
|
ConfigID = configId;
|
|
BindItems.Clear();
|
|
BindItems.AddRange(bindItems);
|
|
}
|
|
}
|
|
} |