From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- Assets/Scripts/Avatar/HitInfo.cs | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete 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 deleted file mode 100644 index aef9a03f..00000000 --- a/Assets/Scripts/Avatar/HitInfo.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -/// -/// 每个招式配置的单个hit数据 -/// -public class Hit -{ - public HitDefination defination; - - /// - /// 记录这个hit命中的avatar,避免连续击中 - /// - private List m_HitAvatars = new List(); - - public void AddRecord(IInteractable interactable) - { - if (!m_HitAvatars.Contains(interactable)) - m_HitAvatars.Add(interactable); - } - - // 招式结束后,清除记录的avatar - public void WipeRecords() - { - m_HitAvatars.Clear(); - } - - public bool HasRecord(IInteractable interactable) - { - return m_HitAvatars.Contains(interactable); - } - -} -- cgit v1.1-26-g67d0