private void EndEject(int resultCode) { if (resultCode == 1) { this.SetBarrier(true); int num = this.selectedChipParameter.ConvertButtonIndex(); this.chipSphereIconButtons[num].SetupEmpty(); this.RefreshItemCountColor(); this.RefreshStatus(); this.RefreshItemNumbers(); this.RefreshYellowLines(); string texname = string.Format("ChipThumbnail/{0}", "eject_slot_01"); foreach (UITexture uiTex in this.ejectItemCutinTextures) { NGUIUtil.ChangeUITextureFromFileASync(uiTex, texname, false, null); } this.ejectItemCutinGO.transform.localPosition = this.chipButtonsPositions[num]; this.ejectItemCutinGO.SetActive(false); this.ejectItemCutinGO.SetActive(true); this.ejectAnimationTrigger.OnFinishAnimation = delegate(string str) { this.SetBarrier(false); this.isLoopOff = true; }; SoundMng.Instance().TryPlaySE("SEInternal/Common/se_108", 0f, false, true, null, -1); this.chipSphereIconButtons[num].OnTouch(); RestrictionInput.EndLoad(); } else { ChipTools.CheckResultCode(resultCode); this.DispErrorModal(resultCode); } }
private void EndAttachment(int resultCode) { if (resultCode == 1) { this.successCallback(); RestrictionInput.EndLoad(); base.ClosePanel(true); } else { RestrictionInput.EndLoad(); ChipTools.CheckResultCode(resultCode); this.DispErrorModal(resultCode); } }