public static Actor Create(GameObject prefab, Vector3 position = default, bool pooled = false) { var tr = pooled ? Obj.Spawn(Pool.Entities, prefab, position) : Obj.Spawn(prefab, position); var actor = tr.AddGetActor(); // actor.isPooled = pooled; actor.Launch(); return(actor); }
void ConsoleOpen() { if (console == null) { console = Obj.Spawn <ComponentConsole>("UI Console"); console.transform.parent.name = "UI Console"; console.gameObject.SetActive(false); } consoleOpened(); console.ActivateConsole(true); }