public MeshCombiner(ObjectPool <GameObject> meshCombinerGameObjectPool, GameObject parentObject, string containerObjectName) { this.isDisabled = GameConstants.MESH_COMBINE_DISABLED; this.meshCombinerGameObjectPool = meshCombinerGameObjectPool; if (parentObject != null) { this.containerObject = UnityUtils.CreateChildGameObject(containerObjectName, parentObject); return; } this.containerObject = new GameObject(containerObjectName); }
public UXController() { Service.Set <UXController>(this); this.HUD = null; this.PerformanceAnchor = new UXPerformanceAnchor(); this.WorldAnchor = new UXWorldAnchor(); this.WorldUIParent = UnityUtils.CreateChildGameObject("WorldUIPanel", this.WorldAnchor.Root); UIPanel uIPanel = this.WorldUIParent.AddComponent <UIPanel>(); uIPanel.depth = -1; this.waitingFor = 1; this.MiscElementsManager = new MiscElementsManager(new AssetsCompleteDelegate(this.OnManagerComplete), null); if (Service.Get <CurrentPlayer>().HasNotCompletedFirstFueStep()) { this.waitingFor++; this.Intro = new IntroCameraAnimation(new AssetsCompleteDelegate(this.OnManagerComplete), null); } }