FiE-Game/Assets/Scripts/Fie/Ponies/Fie.Ponies.RainbowDash/FieEmitObjectRainbowDashOmniSmashRainboomEffect.cs

21 lines
465 B
C#

using Fie.Object;
using UnityEngine;
namespace Fie.Ponies.RainbowDash
{
[FiePrefabInfo("Prefabs/RainbowDash/Power/RainbowDashOmniSmashRainboomEffect")]
public class FieEmitObjectRainbowDashOmniSmashRainboomEffect : FieEmittableObjectBase
{
private const float duration = 2f;
public override void awakeEmitObject()
{
destoryEmitObject(2f);
}
private void Update()
{
base.transform.rotation = Quaternion.LookRotation(directionalVec);
}
}
}