public IEnumerator InstanceObjects(GameObject[] objects, Transform parent, AsyncObjects AsyncObj) { if (AsyncObj.GOs == null) { AsyncObj.GOs = new List <GameObject>(); AsyncObj.GOs_Dic = new Dictionary <string, GameObject>(); } for (int j = 0; j < objects.Length; j++) { if (AsyncObj.GOs_Dic.ContainsKey(objects[j].name)) { Debug.Log("AsyncObject " + objects[j].name + " □□□ 既に存在しているため生成しません □□□"); continue; } float time = Time.realtimeSinceStartup; GameObject go = Util.Instantiate(objects[j], parent.gameObject); Debug.Log(objects[j].name + " AsyncLoad " + (Time.realtimeSinceStartup - time)); AsyncObj.GOs.Add(go); AsyncObj.GOs_Dic.Add(go.name, go); if (AsyncObj.NameChange != null && AsyncObj.NameChange.Length > j) { AsyncObj.GOs[j].name = AsyncObj.NameChange[j]; } if (AsyncObj.isAutoActive) { AsyncObj.GOs[j].SetActive(true); } yield return(null); } yield return(new WaitForSeconds(AsyncObj.delay)); AsyncObj.isFinished = true; if (AsyncObj.Act != null) { for (int i = 0; i < AsyncObj.Act.Count; i++) { AsyncObj.Act[i](); } } yield return(null); }
private void Start() { needUpdate = false; _Xpressed = false; _firstUpdate = false; needAnimation = false; _isTouch = false; _gotMedal = false; _AS = GetComponent <AsyncObjects>(); Util.FindParentToChild(ref _diff1, mDifficulty, "mojiW"); Util.FindParentToChild(ref _diff2, mDifficulty, "mojiB"); Util.FindParentToChild(ref _Button_L, base.transform, "MaskCamera/btn/Button_L"); Util.FindParentToChild(ref _Button_R, base.transform, "MaskCamera/btn/Button_R"); Util.FindParentToChild <Animation>(ref _AM_b, base.transform, "MaskCamera/btn"); Util.FindParentToChild(ref _Button_L_B, _Button_L.transform, "Background"); Util.FindParentToChild(ref _Button_R_B, _Button_R.transform, "Background"); Util.FindParentToChild(ref _board1, mboardud1, "board1"); _Button_L_B.transform.localScale = Vector3.zero; _Button_R_B.transform.localScale = Vector3.one; StartUp(); }
private void Start() { this.needUpdate = false; this._Xpressed = false; this._firstUpdate = false; this.needAnimation = false; this._isTouch = false; this._gotMedal = false; this._AS = base.GetComponent <AsyncObjects>(); Util.FindParentToChild <UITexture>(ref this._diff1, this.mDifficulty, "mojiW"); Util.FindParentToChild <UITexture>(ref this._diff2, this.mDifficulty, "mojiB"); Util.FindParentToChild <UIButton>(ref this._Button_L, base.get_transform(), "MaskCamera/btn/Button_L"); Util.FindParentToChild <UIButton>(ref this._Button_R, base.get_transform(), "MaskCamera/btn/Button_R"); Util.FindParentToChild <Animation>(ref this._AM_b, base.get_transform(), "MaskCamera/btn"); Util.FindParentToChild <UISprite>(ref this._Button_L_B, this._Button_L.get_transform(), "Background"); Util.FindParentToChild <UISprite>(ref this._Button_R_B, this._Button_R.get_transform(), "Background"); Util.FindParentToChild(ref this._board1, this.mboardud1, "board1"); this._Button_L_B.get_transform().set_localScale(Vector3.get_zero()); this._Button_R_B.get_transform().set_localScale(Vector3.get_one()); this.StartUp(); }
private void OnDestroy() { UserInterfacePortManager.ReleaseUtils.Releases(ref mTextures_Preload); UserInterfacePortManager.ReleaseUtils.Releases(ref mParticleSystems_Managed); _uiCommon = null; _clsInputKey = null; _clsTasks = null; _clsArsenal = null; _clsConstruct = null; _clsList = null; logicManager = null; soundManager = null; dialogPopUp = null; asyncObj = null; commonPopup = null; _uiBgPanel = null; Mem.DelAry(ref _deck); Mem.DelAry(ref _ship); Mem.DelAry(ref _allShip); Mem.DelAry(ref dock); UIDrawCall.ReleaseInactive(); }
private void OnDestroy() { UserInterfacePortManager.ReleaseUtils.Releases(ref this.mTextures_Preload, false); UserInterfacePortManager.ReleaseUtils.Releases(ref this.mParticleSystems_Managed); ArsenalTaskManager._uiCommon = null; ArsenalTaskManager._clsInputKey = null; ArsenalTaskManager._clsTasks = null; ArsenalTaskManager._clsArsenal = null; ArsenalTaskManager._clsConstruct = null; ArsenalTaskManager._clsList = null; ArsenalTaskManager.logicManager = null; ArsenalTaskManager.soundManager = null; ArsenalTaskManager.dialogPopUp = null; ArsenalTaskManager.asyncObj = null; ArsenalTaskManager.commonPopup = null; ArsenalTaskManager._uiBgPanel = null; Mem.DelAry <DeckModel>(ref ArsenalTaskManager._deck); Mem.DelAry <ShipModel>(ref ArsenalTaskManager._ship); Mem.DelAry <ShipModel>(ref ArsenalTaskManager._allShip); Mem.DelAry <BuildDockModel>(ref ArsenalTaskManager.dock); UIDrawCall.ReleaseInactive(); }
public static void InstanceAsync(GameObject[] objects, Transform self, AsyncObjects AsyncObj) { SingletonMonoBehaviour <InstantiateAsyncManager> .Instance.StartCoroutine(SingletonMonoBehaviour <InstantiateAsyncManager> .Instance.InstanceObjects(objects, self, AsyncObj)); }
private void OnDestroy() { if (mTexture_SecurityShip != null && mTexture_SecurityShip.mainTexture != null) { mTexture_SecurityShip = null; } if (mDifficulty != null) { mDifficulty = null; } if (mtouchEventArea != null) { } if (mMedalist != null) { mMedalist = null; } if (mboardud1 != null) { mboardud1 = null; } if (mWindowParam != null) { mWindowParam = null; } if (mShipTexture != null) { mShipTexture = null; } if (mbgWalls != null) { Mem.DelAry(ref mbgWalls); } if (mLabels != null) { Mem.DelAry(ref mLabels); } if (Medals != null) { Medals = null; } _now_page = 0; _dbg_class = 0; _Xpressed = false; _firstUpdate = false; needAnimation = false; _isTouch = false; _isScene = false; needUpdate = false; if (_ANIM_filebase != null) { _ANIM_filebase = null; } if (mSecurityShipModel != null) { mSecurityShipModel = null; } if (_clsRecord != null) { _clsRecord = null; } if (label != null) { label = null; } if (label2 != null) { label2 = null; } if (sprite != null) { sprite = null; } if (mTexture_SecurityShip != null) { mTexture_SecurityShip = null; } if (texture != null) { texture = null; } if (_Button_L != null) { _Button_L = null; } if (_Button_R != null) { _Button_R = null; } if (_Button_L_B != null) { _Button_L_B = null; } if (_Button_R_B != null) { _Button_R_B = null; } if ((Object)_AM != null) { _AM = null; } if ((Object)_AM_l != null) { _AM_l = null; } if ((Object)_AM_b != null) { _AM_b = null; } if (_SM != null) { _SM = null; } if (ItemSelectController != null) { ItemSelectController = null; } if (_AS != null) { _AS = null; } if (_board1 != null) { _board1 = null; } alphaZero_b = Color.black * 0f; __USEITEM_DOCKKEY__ = 0; if (_diff1 != null) { _diff1 = null; } if (_diff2 != null) { _diff2 = null; } _gotMedal = false; _SelectableDiff = 0; }
public IEnumerator InstanceObjects(GameObject[] objects, Transform parent, AsyncObjects AsyncObj) { InstantiateAsyncManager.< InstanceObjects > c__Iterator3D <InstanceObjects> c__Iterator3D = new InstantiateAsyncManager.< InstanceObjects > c__Iterator3D();
private void OnDestroy() { if (this.mTexture_SecurityShip != null && this.mTexture_SecurityShip.mainTexture != null) { this.mTexture_SecurityShip = null; } if (this.mDifficulty != null) { this.mDifficulty = null; } if (this.mtouchEventArea != null) { } if (this.mMedalist != null) { this.mMedalist = null; } if (this.mboardud1 != null) { this.mboardud1 = null; } if (this.mWindowParam != null) { this.mWindowParam = null; } if (this.mShipTexture != null) { this.mShipTexture = null; } if (this.mbgWalls != null) { Mem.DelAry <Transform>(ref this.mbgWalls); } if (this.mLabels != null) { Mem.DelAry <Transform>(ref this.mLabels); } if (this.Medals != null) { this.Medals = null; } this._now_page = 0; this._dbg_class = 0; this._Xpressed = false; this._firstUpdate = false; this.needAnimation = false; this._isTouch = false; this._isScene = false; this.needUpdate = false; if (this._ANIM_filebase != null) { this._ANIM_filebase = null; } if (this.mSecurityShipModel != null) { this.mSecurityShipModel = null; } if (this._clsRecord != null) { this._clsRecord = null; } if (this.label != null) { this.label = null; } if (this.label2 != null) { this.label2 = null; } if (this.sprite != null) { this.sprite = null; } if (this.mTexture_SecurityShip != null) { this.mTexture_SecurityShip = null; } if (this.texture != null) { this.texture = null; } if (this._Button_L != null) { this._Button_L = null; } if (this._Button_R != null) { this._Button_R = null; } if (this._Button_L_B != null) { this._Button_L_B = null; } if (this._Button_R_B != null) { this._Button_R_B = null; } if (this._AM != null) { this._AM = null; } if (this._AM_l != null) { this._AM_l = null; } if (this._AM_b != null) { this._AM_b = null; } if (this._SM != null) { this._SM = null; } if (this.ItemSelectController != null) { this.ItemSelectController = null; } if (this._AS != null) { this._AS = null; } if (this._board1 != null) { this._board1 = null; } this.alphaZero_b = Color.get_black() * 0f; this.__USEITEM_DOCKKEY__ = 0; if (this._diff1 != null) { this._diff1 = null; } if (this._diff2 != null) { this._diff2 = null; } this._gotMedal = false; this._SelectableDiff = 0; }