holopy3/Assets/UniGLTF/UniJSON/Scripts/ActionDisposer.cs

21 lines
297 B
C#
Raw Permalink Normal View History

2021-01-28 12:07:52 +00:00
using System;
namespace UniJSON
{
public struct ActionDisposer : IDisposable
{
Action m_action;
public ActionDisposer(Action action)
{
m_action = action;
}
public void Dispose()
{
m_action();
}
}
}