mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-27 15:57:59 +01:00
38 lines
769 B
C#
38 lines
769 B
C#
using Fie.Object;
|
|
using UnityEngine;
|
|
|
|
namespace Fie.Ponies.RainbowDash
|
|
{
|
|
[FiePrefabInfo("Prefabs/RainbowDash/Power/RainbowDashOmniSmashExplosionEffect")]
|
|
public class FieEmitObjectRainbowDashOmniSmashExplosionEffect : FieEmittableObjectBase
|
|
{
|
|
[SerializeField]
|
|
private PKFxFX effectFx;
|
|
|
|
public float scale = 1f;
|
|
|
|
private const float duration = 2.5f;
|
|
|
|
public override void awakeEmitObject()
|
|
{
|
|
destoryEmitObject(2.5f);
|
|
scale = 1f;
|
|
if (effectFx != null)
|
|
{
|
|
effectFx.StopEffect();
|
|
effectFx.StartEffect();
|
|
}
|
|
}
|
|
|
|
public void SetScale(float newScale)
|
|
{
|
|
scale = newScale;
|
|
effectFx.SetAttribute(new PKFxManager.Attribute("Scale", scale));
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
base.transform.rotation = Quaternion.identity;
|
|
}
|
|
}
|
|
}
|