31 lines
689 B
C#
31 lines
689 B
C#
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Ether
|
|
{
|
|
public class PropItemSystem : Singleton<PropItemSystem>
|
|
{
|
|
/// <summary>
|
|
/// 生成道具
|
|
/// </summary>
|
|
public PropItemData GeneratePropItem(int propItemId, int num = 1)
|
|
{
|
|
PropItemData itemData = PoolManager.Inst.Get<PropItemData>();
|
|
itemData.itemId = propItemId;
|
|
itemData.num = num;
|
|
return itemData;
|
|
}
|
|
|
|
private bool UseItem(int propItemId)
|
|
{
|
|
|
|
//TODO:根据不同的道具有不同的使用方式
|
|
|
|
return true;
|
|
}
|
|
}
|
|
}
|