コード例 #1
0
 private void OnClickBalck(ButtonScript obj, object args, int param1, int param2)
 {
     CinemaUI.ShowMe((GameObject go) => {
         GuideManager.Instance.SetFinish(iStep);
         GuideManager.Instance.ClearMask();
     });
 }
コード例 #2
0
ファイル: CinemaMaskHandler.cs プロジェクト: heycayc/mlbb
 void OnClick()
 {
     if (!skipShown_)
     {
         CinemaUI.ShowMe();
     }
 }
コード例 #3
0
    public void SetFinish(int progressIdx)
    {
        progressMask_ |= (ulong)1 << progressIdx;

        // send to server.
        NetConnection.Instance.guideFinish(progressMask_);
        CinemaUI.HideMe();
    }
コード例 #4
0
    public void ClearGuide()
    {
        if (guideRoot_ != null)
        {
            GameObject.Destroy(guideRoot_);
            guideRoot_ = null;
        }
        CinemaUI.HideMe();
        if (crtGuideObj_ != null)
        {
            UIPanel panel = crtGuideObj_.GetComponent <UIPanel>();
            if (panel != null && panel.sortingOrder == GuideDepth + 1 && needRemovePanel_)
            {
                GameObject.Destroy(panel);
            }
            else if (panel != null && panel.sortingOrder == GuideDepth + 1 && !needRemovePanel_)
            {
                panel.depth        = panelDepth_;
                panel.sortingOrder = panelSortOrder_;
                panelDepth_        = 0;
                panelSortOrder_    = 0;
            }
            if (sourceLayer_ != -1)
            {
                NGUITools.SetLayer(crtGuideObj_, sourceLayer_);
                NGUITools.SetChildLayer(crtGuideObj_.transform, sourceLayer_);
                sourceLayer_ = -1;
            }
            //crtGuideObj_.SetActive(false);
            //crtGuideObj_.SetActive(true);
            crtGuideObj_ = null;
        }

        GameObject npcName = (GameObject)GameObject.Find("GuideNpcName");

        if (npcName != null)
        {
            GameObject.Destroy(npcName);
        }

        if (OnClearGuide != null)
        {
            OnClearGuide();
        }
    }
コード例 #5
0
ファイル: CinemaManager.cs プロジェクト: heycayc/mlbb
    void QuitSenseMode()
    {
        GameManager.Instance._IsSenseMode = false;

        CinemaUI.HideMe();

        if (sense_[senseIdx_] != null)
        {
            Destroy(sense_[senseIdx_].gameObject);
        }

        if (cinemaRoot_ != null)
        {
            Destroy(cinemaRoot_);
        }

        ShowAllHiddenUI();

        Prebattle.Instance.ShowAllPeople();

        NpcHeadChat.Instance.Clear();
    }