FiE-Game/Assets/Scripts/Fie/Ponies/Fie.Ponies.Twilight/FieEmitObjectTwilightForceFieldReflectEffect.cs

19 lines
467 B
C#
Raw Normal View History

2018-11-20 20:10:49 +01:00
using Fie.Object;
using UnityEngine;
namespace Fie.Ponies.Twilight
{
[FiePrefabInfo("Prefabs/Twilight/Power/TwilightForceFieldReflectEffect")]
public class FieEmitObjectTwilightForceFieldReflectEffect : FieEmittableObjectBase
{
[SerializeField]
private float reflectEffectDuration = 0.6f;
public override void awakeEmitObject()
{
base.transform.rotation = Quaternion.LookRotation(directionalVec);
destoryEmitObject(reflectEffectDuration);
}
}
}