diff options
author | chai <chaifix@163.com> | 2020-11-16 21:08:39 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-16 21:08:39 +0800 |
commit | 01f06fb513dab303abeb02d7e1007e397874bcc0 (patch) | |
tree | 4df198ef7829471831fcf0c9361b773ea9501d2f /Assets/Scripts/Avatar/HitDefination.cs | |
parent | ac2b469bd76d7d91d10894184cbddad0796ce7bc (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Avatar/HitDefination.cs')
-rw-r--r-- | Assets/Scripts/Avatar/HitDefination.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Assets/Scripts/Avatar/HitDefination.cs b/Assets/Scripts/Avatar/HitDefination.cs index db07a677..d5d68b23 100644 --- a/Assets/Scripts/Avatar/HitDefination.cs +++ b/Assets/Scripts/Avatar/HitDefination.cs @@ -14,6 +14,14 @@ public enum HitType Air, // 击飞
} +public enum HitSparkHost
+{
+ Center, // 受击者质心 + Hitpoint, // 重叠盒子中心 + Fixed, // 固定挂点sparkHost + WorldPosition, // 世界空间位置sparkRotation +} + /// <summary>
/// 一个hit的定义,如果一个attack有多个hit,需要定义多个HitDef
/// </summary> @@ -27,8 +35,9 @@ public class HitDefination // 特效
public string sparkName = string.Empty; // 特效 - public Transform sparkHost = null; // 特效挂点 - public Vector3 sparkPosition; // 特效位置(sparkHost为空时生效) + public HitSparkHost sparkHostType = HitSparkHost.Center;
+ public Transform sparkHost = null; // 特效挂点 + public Vector3 sparkPosition; // 特效位置 public Quaternion sparkRotation; // 特效旋转 public Vector3 sparkScale = Vector3.one; // 特效缩放 |