更新
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using Sirenix.OdinInspector;
|
||||
using SLSUtilities.FunctionalAnimation;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cielonos.MainGame.FunctionalAnimation
|
||||
{
|
||||
[Serializable]
|
||||
public class SetGravity : FuncAnimPayloadBase
|
||||
{
|
||||
[LabelText("@this.enableGravity ? \"Enable Gravity\" : \"Disable Gravity\"")]
|
||||
public bool enableGravity;
|
||||
|
||||
public override void Invoke()
|
||||
{
|
||||
character.movementSc.isApplyingGravity = enableGravity;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c1178a086116d754580af7d2a4eb3854
|
||||
Reference in New Issue
Block a user