更新
This commit is contained in:
@@ -43,18 +43,17 @@ namespace Cielonos.MainGame
|
||||
}
|
||||
|
||||
public abstract bool OnBuffApply(out CharacterBuffBase existingBuff);
|
||||
|
||||
public override void OnAfterFirstApply()
|
||||
{
|
||||
statusSubmodule?.AddStatus();
|
||||
attachedCharacter.buffSm.buffList.Exclude(this).For(buff => buff.eventSubmodule?.onOtherBuffFirstApplied.Invoke(this));
|
||||
}
|
||||
|
||||
protected float DeltaTime => attachedCharacter.selfTimeSm.DeltaTime;
|
||||
|
||||
public override void OnBuffUpdate()
|
||||
{
|
||||
timeSubmodule?.Update(DeltaTime);
|
||||
independentStackSubmodule?.Update(DeltaTime);
|
||||
timeSubmodule?.Update(attachedCharacter.selfTimeSm.DeltaTime);
|
||||
independentStackSubmodule?.Update(attachedCharacter.selfTimeSm.DeltaTime);
|
||||
}
|
||||
|
||||
public override void OnBuffRemove()
|
||||
|
||||
@@ -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