IndieGame/client/Assets/Scripts/System/PropItem/PropItemSystem.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +08:00

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;
}
}
}