diff options
author | chai <chaifix@163.com> | 2020-11-02 09:00:15 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-02 09:00:15 +0800 |
commit | 64061aee5d7849f348f07b78fc3f96ad7555c147 (patch) | |
tree | 77ea9e4dc7a34e7d324c7cc9f2f8d6e978605d8f /Assets/Scripts/Avatar/HitInfo.cs | |
parent | e6fc3425078c4997bc035ce3636e9a756e697c4b (diff) |
*jump
Diffstat (limited to 'Assets/Scripts/Avatar/HitInfo.cs')
-rw-r--r-- | Assets/Scripts/Avatar/HitInfo.cs | 25 |
1 files changed, 25 insertions, 0 deletions
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; + + /// <summary> + /// 记录这个hit命中的avatar + /// </summary> + private List<Avatar> m_HitAvatars; + + public void AddRecord(Avatar avatar) + { + if (m_HitAvatars.Contains(avatar)) + m_HitAvatars.Add(avatar); + } + + // 招式结束后,清除记录的avatar + public void WipeRecords() + { + m_HitAvatars.Clear(); + } +} |