From 28b89971f0d3fd246443450c87f33996716facb3 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 15 Sep 2021 19:58:59 +0800 Subject: *misc --- Assets/Scripts/Unit/UnitDetail.cs | 51 ++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 12 deletions(-) (limited to 'Assets/Scripts/Unit/UnitDetail.cs') diff --git a/Assets/Scripts/Unit/UnitDetail.cs b/Assets/Scripts/Unit/UnitDetail.cs index 30a98c63..bab954c4 100644 --- a/Assets/Scripts/Unit/UnitDetail.cs +++ b/Assets/Scripts/Unit/UnitDetail.cs @@ -59,27 +59,52 @@ public enum EUnitBone LLowerLeg, // 小腿肚 LFoot, // 左脚 LToes, // 脚趾 - LToe0, // 脚趾0 - LToe1, // 脚趾1 - LToe2, // 脚趾2 - LToe3, // 脚趾3 - LToe4, // 脚趾4 + //LToe0, // 脚趾0 + //LToe1, // 脚趾1 + //LToe2, // 脚趾2 + //LToe3, // 脚趾3 + //LToe4, // 脚趾4 RUpperLeg = 80, // 大腿 RLowerLeg, // 小腿肚 RFoot, // 左脚 RToes, // 脚趾 - RToe0, // 脚趾0 - RToe1, // 脚趾1 - RToe2, // 脚趾2 - RToe3, // 脚趾3 - RToe4, // 脚趾4 + //RToe0, // 脚趾0 + //RToe1, // 脚趾1 + //RToe2, // 脚趾2 + //RToe3, // 脚趾3 + //RToe4, // 脚趾4 } [Serializable] public class UnitBoneDictionary : SerializableDictionary { } +public enum EUnitReferencePoint +{ + None = 0, + + Gunpoint = 1, // 枪口 + Gunpoint2, // 枪口 + + SwordTop = 20, // 剑尖端 + SwordBottom, // 剑底端 + + HitpointHead = 40, + HitpointHeadFront, + HitpointHeadBack, + HitpointNeck, + HitpointUpperBody, + HitpointUpperBodyFront, + HitpointUpperBodyBack, + HitpointLowerBody, + HitpointLowerBodyFront, + HitpointLowerBodyBack, +} + +[Serializable] +public class UnitReferencePointDictionary : SerializableDictionary { } + // 角色的prefab附加数据 // * afterimage的prefab // * 骨骼映射 @@ -92,8 +117,10 @@ public class UnitDetail : MonoBehaviour public UnitBoneDictionary bones; - //[ExecuteInEditMode] - public UnitDetail() + public UnitReferencePointDictionary referencePoints; + + //[ExecuteInEditMode] + public UnitDetail() { bones = new UnitBoneDictionary(); foreach(EUnitBone e in Enum.GetValues(typeof(EUnitBone))) -- cgit v1.1-26-g67d0