mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
24 lines
646 B
C#
24 lines
646 B
C#
using Raindrop.Services.Bootstrap;
|
|
using UnityEngine;
|
|
|
|
namespace Raindrop.Unity
|
|
{
|
|
// fixme:
|
|
// this is kind of like a builder to generate a simple scene with bootstrapper.
|
|
// I don't think we should use something so complicated
|
|
public class SceneBootstrapperGenerator
|
|
{
|
|
public static GameObject mtd;
|
|
public static void Init()
|
|
{
|
|
mtd = GameObject.CreatePrimitive(PrimitiveType.Cube);
|
|
mtd.AddComponent<RaindropBootstrapper>();
|
|
|
|
}
|
|
public static void AddMainThreadDispatcher()
|
|
{
|
|
mtd.AddComponent<UnityMainThreadDispatcher>();
|
|
}
|
|
|
|
}
|
|
} |