更新
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using SLSUtilities.FunctionalAnimation;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cielonos.MainGame.FunctionalAnimation
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0127f520fea3f7947afd7ecb0e9b1940
|
||||
Reference in New Issue
Block a user