You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
894 B
C#
25 lines
894 B
C#
using System;
|
|
using Game;
|
|
using UnityEngine;
|
|
using UnityEngine.Playables;
|
|
|
|
[Serializable]
|
|
public class AttackBehaviour : PlayableBehaviour
|
|
{
|
|
[Rename("使用射线检测")] public bool isRaycast;
|
|
[Rename("中心点")] public Vector3 center;
|
|
[Rename("半大小")] public Vector3 halfExtents;
|
|
[Rename("击飞方向")] public Vector3 flowSpeed;
|
|
[Rename("击飞持续时间")] public float flowTime;
|
|
[Rename("可以从地面击飞")] public bool isFlow;
|
|
[Rename("伤害修正")] public float damageRate;
|
|
[Rename("眩晕修正")] public float stunRate;
|
|
[Rename("硬直等级")] public int staggerLevel = 2;
|
|
[Rename("卡帧时间")] public float pauseTime;
|
|
[Rename("命中id")] public int hitId; //同一hitId视为一段伤害
|
|
[Rename("伤害类型")] public EHitType hitType;
|
|
|
|
public override void OnPlayableCreate(Playable playable)
|
|
{
|
|
}
|
|
} |