11 lines
305 B
C#
11 lines
305 B
C#
using Syntriax.Engine.Core.Abstract;
|
|
|
|
namespace Syntriax.Engine.Core.Factory;
|
|
|
|
public class TransformFactory
|
|
{
|
|
public ITransform2D Instantiate() => TypeFactory.Get<Transform2D>();
|
|
public T Instantiate<T>(params object?[]? args) where T : class, ITransform2D
|
|
=> TypeFactory.Get<T>(args);
|
|
}
|