private void OnJYPlayTweenFinish(IXUITweenTool iPlayTween) { this.JY.SetVisible(false); this.mTextureTransform.gameObject.SetActive(true); this.TweenOK = true; XSingleton <XUpdater> .singleton.Begin(); }
private void LoadFinishClean() { this.JY = null; this.Black = null; this.JYPlayTween = null; this.BlackPlayTween = null; this.StatusText = null; this.VersionText = null; this.ClickBox = null; this.mDialogCallBack = null; this.mDialogCancelCallBack = null; this.mDialogCancelBtn = null; this.mDialogSureBtn = null; this.mDialogCapacityLabel = null; this.mDialogTransform = null; this.mDownLoadNewBtn = null; this.mDownLoadTransform = null; }
public override bool Init() { PlayerPrefs.SetString("Language", "Language"); GameObject.Find("UIRoot/StartLoadingDlg/Bg/Ailin"); GameObject gameObject = GameObject.Find("UIRoot/StartLoadingDlg/Bg/JY"); GameObject gameObject2 = GameObject.Find("UIRoot/StartLoadingDlg/Bg").transform.FindChild("Black").gameObject; this.StatusText = (GameObject.Find("UIRoot/StartLoadingDlg/Bg/LabelStatus").GetComponent("XUILabel") as IXUILabel); this.VersionText = (GameObject.Find("UIRoot/StartLoadingDlg/Bg/LabelVersion").GetComponent("XUILabel") as IXUILabel); this.JY = (gameObject.GetComponent("XUISprite") as IXUISprite); this.Black = (gameObject2.GetComponent("XUISprite") as IXUISprite); this.JYPlayTween = (gameObject.GetComponent("XUIPlayTween") as IXUITweenTool); this.BlackPlayTween = (gameObject2.GetComponent("XUIPlayTween") as IXUITweenTool); this.JYPlayTween.SetTargetGameObject(gameObject); this.JYPlayTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnJYPlayTweenFinish)); this.Black.SetVisible(true); this.BlackPlayTween.SetTargetGameObject(gameObject2); this.BlackPlayTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnBlackPlayTweenFinish)); this.StatusText.SetVisible(false); this.VersionText.SetVisible(false); this.Black.SetVisible(false); this.JY.SetVisible(true); this.JYPlayTween.PlayTween(true, -1f); this.ClickBox = (GameObject.Find("UIRoot/StartLoadingDlg/Bg").GetComponent("XUISprite") as IXUISprite); this.ClickBox.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnBoxClick)); this.mTextureTransform = GameObject.Find("UIRoot/StartLoadingDlg/Bg/Texture").transform; this.mDialogTransform = GameObject.Find("UIRoot/StartLoadingDlg/Bg/Dialog").transform; this.mDialogSureBtn = (this.mDialogTransform.FindChild("OK").GetComponent("XUIButton") as IXUIButton); this.mDialogCancelBtn = (this.mDialogTransform.FindChild("Cancel").GetComponent("XUIButton") as IXUIButton); this.mDialogCapacityLabel = (this.mDialogTransform.FindChild("CapacityValue").GetComponent("XUILabel") as IXUILabel); this.mDialogSureBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDialogSureClick)); this.mDialogCancelBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDialogCancelClick)); this.mTextureTransform.gameObject.SetActive(false); this.mDialogTransform.gameObject.SetActive(false); this.mDownLoadTransform = GameObject.Find("UIRoot/StartLoadingDlg/Bg/DownNew").transform; this.mDownLoadNewBtn = (this.mDownLoadTransform.FindChild("OK").GetComponent("XUIButton") as IXUIButton); this.mDownLoadTransform.gameObject.SetActive(false); this.mDownLoadNewBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDownLoadCallback)); return(true); }
private void OnAilinPlayTweenFinish(IXUITweenTool iPlayTween) { this.TweenOK = true; }
private void OnBlackPlayTweenFinish(IXUITweenTool iPlayTween) { XSingleton <XUpdater> .singleton.Phase = eUPdatePhase.xUP_Finish; }