FiE-Game/Assets/Scripts/Fie/Ponies/Fie.Ponies.Applejack/FieEmitObjectApplejackKickEffect.cs

22 lines
496 B
C#
Raw Normal View History

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