public override void OnClose()
    {
        TsAudio.RestoreMuteAllAudio();
        TsAudio.RefreshAllMuteAudio();
        if (null != this.rootEffectGameObject)
        {
            UnityEngine.Object.Destroy(this.rootEffectGameObject);
        }
        if (this.bLegend)
        {
            Myth_Legend_Info_DLG myth_Legend_Info_DLG = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MYTH_LEGEND_INFO_DLG) as Myth_Legend_Info_DLG;

            if (myth_Legend_Info_DLG != null)
            {
                myth_Legend_Info_DLG.InitSetCharKind(this.m_i32SelectCharKind);
            }
        }
        else
        {
            SolDetail_Info_Dlg solDetail_Info_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.SOLDETAIL_DLG) as SolDetail_Info_Dlg;

            if (solDetail_Info_Dlg != null)
            {
                solDetail_Info_Dlg.SetElementGui();
            }
        }
        Resources.UnloadUnusedAssets();
        base.OnClose();
    }
    public override void CloseForm(IUIObject obj)
    {
        this.lb_name.Visible = false;
        this.DestroyLoadObject();
        NrTSingleton <NkClientLogic> .Instance.SetCanOpenTicket(true);

        ItemMallDlg itemMallDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.ITEMMALL_DLG) as ItemMallDlg;

        if (itemMallDlg != null)
        {
            itemMallDlg.SetShowData();
        }
        if (null != BugFixAudio.PlayOnceRoot)
        {
            int childCount = BugFixAudio.PlayOnceRoot.transform.childCount;
            for (int i = 0; i < childCount; i++)
            {
                Transform child = BugFixAudio.PlayOnceRoot.transform.GetChild(i);
                if (child != null)
                {
                    UnityEngine.Object.Destroy(child.gameObject);
                }
            }
        }
        TsAudio.RestoreMuteAllAudio();
        TsAudio.RefreshAllMuteAudio();
        base.CloseForm(obj);
    }
Esempio n. 3
0
 public override void OnClose()
 {
     TsAudio.RestoreMuteAllAudio();
     TsAudio.RefreshAllMuteAudio();
     if (null != this.rootEffectGameObject)
     {
         UnityEngine.Object.Destroy(this.rootEffectGameObject);
     }
     base.OnClose();
 }
Esempio n. 4
0
 public override void Update()
 {
     if (this.bLoadActionReforge && null != this.rootGameObject && null != this.aniGameObject && !this.aniGameObject.isPlaying)
     {
         UnityEngine.Object.DestroyImmediate(this.rootGameObject);
         this.bLoadActionReforge = false;
         this.bRequest           = false;
         this.aniGameObject      = null;
         TsAudio.RestoreMuteAllAudio();
         TsAudio.RefreshAllMuteAudio();
         this.SendServer();
         NkInputManager.IsInputMode = true;
     }
 }
Esempio n. 5
0
 private void SoundMuteRestore()
 {
     if (null != BugFixAudio.PlayOnceRoot)
     {
         int childCount = BugFixAudio.PlayOnceRoot.transform.childCount;
         for (int i = 0; i < childCount; i++)
         {
             Transform child = BugFixAudio.PlayOnceRoot.transform.GetChild(i);
             if (child != null)
             {
                 UnityEngine.Object.Destroy(child.gameObject);
             }
         }
     }
     TsAudio.RestoreMuteAllAudio();
     TsAudio.RefreshAllMuteAudio();
 }
 public override void CloseForm(IUIObject obj)
 {
     if (null != BugFixAudio.PlayOnceRoot)
     {
         int childCount = BugFixAudio.PlayOnceRoot.transform.childCount;
         for (int i = 0; i < childCount; i++)
         {
             Transform child = BugFixAudio.PlayOnceRoot.transform.GetChild(i);
             if (child != null)
             {
                 UnityEngine.Object.Destroy(child.gameObject);
             }
         }
     }
     TsAudio.RestoreMuteAllAudio();
     TsAudio.RefreshAllMuteAudio();
     base.CloseForm(obj);
 }