少年修仙传客户端代码仓库
hch
2025-03-03 28785d6ddf9c08e49527ede9405c7b6c93c6ed32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using UnityEngine;
 
/// <summary>
/// 碰撞检测类型
/// </summary>
public enum E_HitTestType
{
    Sector,
    Rect,
}
 
/// <summary>
/// 技能检测基于点类型
/// </summary>
public enum E_CastBaseType
{
    Self,
    Target,
}
 
public enum E_HitType
{
    Hurt,
    HitDown,
    None,
}
 
public class SoConfigBase : ScriptableObject
{
    public float moveDuration;
    public AnimationCurve curve = new AnimationCurve();
 
    public bool moveThrougthEnable = true;// 移动是否能够穿透
    public bool forceMoveThrougthEnable = false;// 强制移动是否能够穿透
 
    public int floodPercent;// 飘血量占比, 万分率
 
    public bool doBodyControl = true;// 是否执行bodyContorl
 
    public int bodyControlId;// 飞行物打到人的时候,对目标产生击退,击飞等效果的配置Id
 
    public int deadFlyId;// 飞行物打到人的时候,对目标产生死亡效果的配置Id
 
    public int hitEffectId;// 目标受到本配置攻击的时候显示的特效
 
    public int cameraSfxId;// 摄像机效果配置Id
 
    public int hitPauseTime;// 顿帧时间(毫秒)
 
    public E_HitType hitType;// 被击者播放的动作id
}