public void SetFinish(int progressIdx) { progressMask_ |= (ulong)1 << progressIdx; // send to server. NetConnection.Instance.guideFinish(progressMask_); CinemaUI.HideMe(); }
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(); } }
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(); }