public UpdateSystem() { var go = new GameObject("UpdateSystem"); _component = go.AddComponent <UpdateManagerComponent>(); Object.DontDestroyOnLoad(go); }
public void OnExecute() { ticks.Clear(); fixedTicks.Clear(); lateTicks.Clear(); UpdateManagerComponent umc = GameObject.Find("[ENTRY]").AddComponent <UpdateManagerComponent>(); umc.enabled = true; umc.Setup(this); }