From 64061aee5d7849f348f07b78fc3f96ad7555c147 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 2 Nov 2020 09:00:15 +0800 Subject: *jump --- Assets/Scripts/Avatar/HitInfo.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Assets/Scripts/Avatar/HitInfo.cs (limited to 'Assets/Scripts/Avatar/HitInfo.cs') diff --git a/Assets/Scripts/Avatar/HitInfo.cs b/Assets/Scripts/Avatar/HitInfo.cs new file mode 100644 index 00000000..bdb116eb --- /dev/null +++ b/Assets/Scripts/Avatar/HitInfo.cs @@ -0,0 +1,25 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class HitInfo +{ + public HitDefination defination; + + /// + /// 记录这个hit命中的avatar + /// + private List m_HitAvatars; + + public void AddRecord(Avatar avatar) + { + if (m_HitAvatars.Contains(avatar)) + m_HitAvatars.Add(avatar); + } + + // 招式结束后,清除记录的avatar + public void WipeRecords() + { + m_HitAvatars.Clear(); + } +} -- cgit v1.1-26-g67d0