Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #region
-
- using System;
- using Svelto.DataStructures;
- using UnityEngine;
-
- #endregion
-
- namespace Svelto.Context
- {
- public class MonoBehaviourFactory : Factories.IMonoBehaviourFactory
- {
- virtual public M Build<M>(Func<M> constructor) where M : MonoBehaviour
- {
- var mb = constructor();
-
- return mb;
- }
- }
- }
|