summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/Items/ItemBase.cs
blob: 54367b2652c81b5c5d4d824558b26917c617033f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 物品,可以加Buff、提升属性、技能附加效果
/// </summary>
public class ItemBase : MonoBehaviour
{

	public virtual string name { get; }

	public virtual string iconPath { get; }

	protected int m_Count = 1;
	public int count { get { return m_Count; } }

	public void SetCount(int c)
	{
		m_Count = c;
	}

	public virtual void Update()
	{
	}

}