21 lines
550 B
C#
21 lines
550 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()
|
|
{
|
|
VFXObject vfxObject = runtimeFuncAnim.executor.vfxData.SpawnVFX(vfxKey).GetComponent<VFXObject>();
|
|
if (vfxObject != null)
|
|
{
|
|
vfxObject.SetCreator(runtimeFuncAnim.executor);
|
|
}
|
|
}
|
|
}
|
|
} |