23 lines
574 B
C#
23 lines
574 B
C#
using System;
|
|
using SLSUtilities.FunctionalAnimation;
|
|
using UnityEngine;
|
|
|
|
namespace Cielonos.MainGame.FunctionalAnimation
|
|
{
|
|
[Serializable]
|
|
public class SpawnVFX : FuncAnimPayloadBase
|
|
{
|
|
public string vfxKey = "VFXKey";
|
|
|
|
public override void Invoke()
|
|
{
|
|
if (mute) return;
|
|
|
|
VFXObject vfxObject = character.vfxData.SpawnVFX(vfxKey, character).GetComponent<VFXObject>();
|
|
if (vfxObject != null)
|
|
{
|
|
vfxObject.SetCreator(character);
|
|
}
|
|
}
|
|
}
|
|
} |