/// <summary> /// 채팅 UI 삭제하기 /// </summary> public void Clear_ChatUI() { UI_Manager _ui_mgr = UI_Manager.Getsingleton; //인게임 canvas 찾기 _ui_mgr.Find_UICanvasTr(); _ui_mgr.ClearUI(UI.CHAT); }
//채팅UI 띄우기 public void Create_ChatUI() { UI_Manager _ui_mgr = UI_Manager.Getsingleton; //인게임 canvas 찾기 _ui_mgr.Find_UICanvasTr(); //결과창 UI 생성 //_ui_mgr.Dic_UILst.Clear(); _ui_mgr.CreatUI(UI.CHAT, _ui_mgr.CanvasTr); }
/// <summary> /// 결과화면 UI 보여주기 (매개변수 : 승리flag => 승 = 0 , 패 = 1 ,무승부 = 2) /// </summary> public void Create_ResultUI(byte winFlag) { UI_Manager _ui_mgr = UI_Manager.Getsingleton; //인게임 canvas 찾기 _ui_mgr.Find_UICanvasTr(); //결과창 UI 생성 //_ui_mgr.Dic_UILst.Clear(); _ui_mgr.CreatUI(UI.INGAME_RESULT, _ui_mgr.CanvasTr); // 결과창 UI의 컴포넌트가져오기 UI_Ingame_result ingame_result = _ui_mgr.Dic_UILst[UI.INGAME_RESULT] as UI_Ingame_result; ingame_result.showResult(winFlag); ingame_result.transform.SetAsFirstSibling(); }