Code/SbTween/Examples/ActionGraph/SbeActionGraphTest.cs

A small Sandbox component used in an example. It exposes a Property of type Action and invokes that Action when the component starts and again when RestartAction is called.

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();
	}
}