blob: 1f622b3210c5adfc85c00a873a7f1aab5d07d809 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// 一个hit的效果,如果一个attack有多个hit,需要定义多个HitDef
public class HitDefination
{
public float start = 0f;
public float end = 1f; // 触发的开始和结束时间范围,用来处理一个attack多个hit的情况
public int effectID = 0; // 特效
public Transform effectHost = null; // 特效挂点
public Vector3 effectPosition; // 特效位置(effectHost为空时生效)
public Quaternion effectRotation; // 特效旋转
public Vector3 effectScale = Vector3.one; // 特效缩放
}
|