FiE-Game/Assets/Scripts/Fie/Enemies/HoovesRaces/ChangelingAlpha/FieEmitObjectChangelingAlphaChargeEffect.cs

22 lines
558 B
C#
Raw Normal View History

2018-11-20 20:10:49 +01:00
using Fie.Object;
using UnityEngine;
namespace Fie.Enemies.HoovesRaces.ChangelingAlpha
{
[FiePrefabInfo("Prefabs/Enemies/ChangelingForces/ChangelingAlpha/Power/ChangelingAlphaChargeEffect")]
public class FieEmitObjectChangelingAlphaChargeEffect : FieEmittableObjectBase
{
private const float DURATION = 1f;
public override void awakeEmitObject()
{
if (initTransform != null)
{
base.transform.position = initTransform.position;
}
base.transform.rotation = Quaternion.LookRotation(directionalVec);
destoryEmitObject(1f);
}
}
}