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.
|
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.Playables;
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class EffectInfo
|
|
|
|
|
{
|
|
|
|
|
[Rename("特效资源")]
|
|
|
|
|
public GameObject Effect;
|
|
|
|
|
[Rename("是否跟随实体")]
|
|
|
|
|
public bool isAttach;
|
|
|
|
|
[Rename("是否忽略速度缩放")]
|
|
|
|
|
public bool isSpeedIgnore;
|
|
|
|
|
[Rename("是否在地面释放")]
|
|
|
|
|
public bool isGround;
|
|
|
|
|
[Rename("额外偏移")]
|
|
|
|
|
public Vector3 offset;
|
|
|
|
|
[Rename("额外旋转")]
|
|
|
|
|
public float rotAdd;
|
|
|
|
|
[Rename("额外随机旋转")]
|
|
|
|
|
public float rotAddRandom;
|
|
|
|
|
}
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class EffectBehaviour : PlayableBehaviour
|
|
|
|
|
{
|
|
|
|
|
public EffectInfo[] EffectInfos;
|
|
|
|
|
public override void OnPlayableCreate(Playable playable)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|