Пример #1
0
 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);
 }
Пример #2
0
        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);
            }
        }