A small Sandbox component example that stores an Action via a Property and invokes it on start and when RestartAction is called. It is meant as an ActionGraph test or example for the SbTween package.
using System;
using Sandbox;
using SbTween;
namespace SbTween.Examples;
public sealed class SbeActionGraphTest : Component
{
[Property] public Action actionTest;
protected override void OnStart()
{
actionTest.Invoke();
}
public void RestartAction()
{
actionTest.Invoke();
}
}