From 8131033510c711248de1904649cfa1dbe4bbe69f Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Apr 2022 10:09:11 +0800 Subject: *rename item to prop --- SurvivalTest/Assets/Scripts/Props/PropBase.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 SurvivalTest/Assets/Scripts/Props/PropBase.cs (limited to 'SurvivalTest/Assets/Scripts/Props/PropBase.cs') 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; + +/// +/// ÎïÆ· +/// +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 -- cgit v1.1-26-g67d0