Esempio n. 1
0
        public static T Instantiate <T>(T original, UnityEmulator onEmulator = null, Action <ComponentInitialize <T> > initialization = null)
            where T : MonoBehaviour, new()
        {
            var emu = onEmulator ?? UnityEmulator.Instance;

            return(emu.NewGameObject <T>(original, initialization));
        }
Esempio n. 2
0
 public UnityEmulatorWrap(double fps = 60.0)
 {
     Emulator = new UnityEmulator(fps);
 }
Esempio n. 3
0
 public UnityEmulator(double fps = 60.0)
 {
     Fps       = fps;
     _instance = this;
     clock     = new Stopwatch();
 }
Esempio n. 4
0
        public static GameObject Instantiate(UnityEmulator onEmulator = null)
        {
            var emu = onEmulator ?? UnityEmulator.Instance;

            return(emu.NewGameObject());
        }