mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-12-02 17:57:59 +01:00
22 lines
500 B
C#
22 lines
500 B
C#
|
using Fie.Object;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace Fie.Ponies.Applejack
|
||
|
{
|
||
|
[FiePrefabInfo("Prefabs/Applejack/Power/ApplejackChargeEffect")]
|
||
|
public class FieEmitObjectApplejackChargeEffect : 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);
|
||
|
}
|
||
|
}
|
||
|
}
|