Story/GiveMechanicTrigger.cs
namespace Opium;

/// <summary>
/// Gives a mechanic to the player.
/// </summary>
public partial class GiveMechanicTrigger : ActionTrigger
{
	[Property] public GameObject Prefab { get; set; }
	[Property] public float Lifetime { get; set; } = 5f;

	protected override void Activate()
	{
		base.Activate();
		Actor?.GiveMechanicFromPrefab( Prefab, Lifetime );
	}
}