summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Avatar
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-11-15 20:04:06 +0800
committerchai <chaifix@163.com>2020-11-15 20:04:06 +0800
commitbe3ca8b172f22ce7c4c4316745e0df05de58b069 (patch)
tree3de5f6997afefb84c4502e6b6df37d5f210a04b2 /Assets/Scripts/Avatar
parentde4941bb799df774f29857ce42a7c139050fa096 (diff)
*misc
Diffstat (limited to 'Assets/Scripts/Avatar')
-rw-r--r--Assets/Scripts/Avatar/Avatar.cs9
-rw-r--r--Assets/Scripts/Avatar/Avatar_Hurt.cs3
2 files changed, 11 insertions, 1 deletions
diff --git a/Assets/Scripts/Avatar/Avatar.cs b/Assets/Scripts/Avatar/Avatar.cs
index c44af96c..1f3990a9 100644
--- a/Assets/Scripts/Avatar/Avatar.cs
+++ b/Assets/Scripts/Avatar/Avatar.cs
@@ -18,7 +18,14 @@ public partial class Avatar : MonoBehaviour, IInteractable
protected AbilitySystem m_AbilitySystem = new AbilitySystem();
- public PhysicsBody Body
+ // 预定义的ability,角色必须定义的
+ protected AbilityBase m_AbilityLightHurt;
+ protected AbilityBase m_AbilityMidiumHurt;
+ protected AbilityBase m_AbilityHeavyHurt;
+ protected AbilityBase m_AbilityGroundHurt;
+ protected AbilityBase m_AbilityAirHurt;
+
+ public PhysicsBody Body
{
get
{
diff --git a/Assets/Scripts/Avatar/Avatar_Hurt.cs b/Assets/Scripts/Avatar/Avatar_Hurt.cs
index f0cedffa..3f26bcbe 100644
--- a/Assets/Scripts/Avatar/Avatar_Hurt.cs
+++ b/Assets/Scripts/Avatar/Avatar_Hurt.cs
@@ -11,6 +11,9 @@ public partial class Avatar : MonoBehaviour, IInteractable
m_Body.AddForce(hit.hurtAddForce);
}
+ // force switch to hurt ability
+
+
}
}