mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-27 15:57:59 +01:00
32 lines
711 B
C#
32 lines
711 B
C#
|
using Fie.Manager;
|
||
|
using Fie.Object;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace Fie.Ponies.RainbowDash
|
||
|
{
|
||
|
[FiePrefabInfo("Prefabs/RainbowDash/Power/RainbowDashOmniSmashImpactEffect")]
|
||
|
public class FieEmitObjectRainbowDashOmniSmashImpactEffect : FieEmittableObjectBase
|
||
|
{
|
||
|
[SerializeField]
|
||
|
private PKFxFX effectFx;
|
||
|
|
||
|
private const float duration = 1.5f;
|
||
|
|
||
|
public override void awakeEmitObject()
|
||
|
{
|
||
|
destoryEmitObject(1.5f);
|
||
|
if (effectFx != null)
|
||
|
{
|
||
|
effectFx.StopEffect();
|
||
|
effectFx.StartEffect();
|
||
|
}
|
||
|
FieManagerBehaviour<FieGameCameraManager>.I.gameCamera.setWiggler(0.5f, 6, new Vector3(0.5f, 0.5f, 0.5f));
|
||
|
}
|
||
|
|
||
|
private void Update()
|
||
|
{
|
||
|
base.transform.rotation = Quaternion.identity;
|
||
|
}
|
||
|
}
|
||
|
}
|