summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/Props/PropBase.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-04-25 10:09:11 +0800
committerchai <chaifix@163.com>2022-04-25 10:09:11 +0800
commit8131033510c711248de1904649cfa1dbe4bbe69f (patch)
tree80e0db1f24c6d624ac412f240f54cc18e626c3d0 /SurvivalTest/Assets/Scripts/Props/PropBase.cs
parent71ae3d755a03a706d93291ca57c6de8e6f0d5926 (diff)
*rename item to prop
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Props/PropBase.cs')
-rw-r--r--SurvivalTest/Assets/Scripts/Props/PropBase.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/SurvivalTest/Assets/Scripts/Props/PropBase.cs b/SurvivalTest/Assets/Scripts/Props/PropBase.cs
new file mode 100644
index 0000000..3976a3c
--- /dev/null
+++ b/SurvivalTest/Assets/Scripts/Props/PropBase.cs
@@ -0,0 +1,19 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+/// <summary>
+/// ÎïÆ·
+/// </summary>
+public abstract class PropBase
+{
+
+ public abstract string name { get; }
+
+ public abstract string iconPath { get; }
+
+ public abstract void OnUse(GameObject owner);
+
+ public virtual void Update() { }
+
+} \ No newline at end of file