Ejemplo n.º 1
0
 public void ApplyShowHideHelpWindow(bool isShow)
 {
     if (!this.helpLoaded)
     {
         return;
     }
     if (isShow)
     {
         SoundPlayer.PlayButtonEnter();
         base.battleStateData.isShowHelp = true;
         NGUITools.SetActiveSelf(this.ui.helpDialog.gameObject, true);
         TutorialImageWindow imageWindow        = this.tutorialUI.ImageWindow;
         List <string>       pageResourcesNames = this.imageNames;
         bool   isDisplayThumbnail = false;
         Action closedAction       = new Action(this.CloseWindow);
         if (BattleHelp.< > f__mg$cache0 == null)
         {
             BattleHelp.< > f__mg$cache0 = new Action(SoundPlayer.PlayButtonCancel);
         }
         base.StartCoroutine(imageWindow.OpenWindow(pageResourcesNames, isDisplayThumbnail, closedAction, BattleHelp.< > f__mg$cache0));
     }
     else
     {
         this.tutorialUI.ImageWindow.CloseWindow();
     }
 }
Ejemplo n.º 2
0
 private void OnDestroy()
 {
     UnityEngine.Object.Destroy(this.messageWindow);
     this.messageWindow = null;
     UnityEngine.Object.Destroy(this.imageWindow);
     this.imageWindow = null;
     UnityEngine.Object.Destroy(this.nonFrameText);
     this.nonFrameText = null;
     UnityEngine.Object.Destroy(this.thumbnail);
     this.thumbnail = null;
     UnityEngine.Object.Destroy(this.selectItem);
     this.selectItem = null;
     if (this.CommonBackground != null)
     {
         UnityEngine.Object.Destroy(this.CommonBackground);
         this.CommonBackground = null;
     }
 }
Ejemplo n.º 3
0
    public IEnumerator LoadImageWindow()
    {
        if (null == this.imageWindow)
        {
            GameObject go = AssetDataMng.Instance().LoadObject("Tutorial/TutorialImageWindow", null, true) as GameObject;
            GameObject ui = UnityEngine.Object.Instantiate <GameObject>(go);
            yield return(null);

            ui.transform.parent        = base.transform;
            ui.transform.localPosition = Vector3.zero;
            ui.transform.localScale    = Vector3.one;
            ui.transform.localRotation = Quaternion.identity;
            this.imageWindow           = ui.GetComponent <TutorialImageWindow>();
            go = null;
            Resources.UnloadUnusedAssets();
        }
        yield break;
    }
Ejemplo n.º 4
0
 public void SetImageWindow(TutorialImageWindow window)
 {
     this.imageWindow = window;
 }