/********** Default Method **********/ // Wild_Init public void Wild_Init(Transform _map, int _dugeonX, int _number, string _str) { m_basic = Object.Instantiate(Resources.Load <GameObject>("Basic")); m_basic.name = "room_" + _number; m_basic.transform.parent = _map; m_basic.SetActive(false); // m_number = _number; m_x = _number % _dugeonX; m_y = _number / _dugeonX; m_isFind = false; string[] strs = _str.Split('!'); // switch (strs[0]) { case "MOVE": m_type = Wild_Dungeon_UI.Move; break; case "BATTLE": m_type = Wild_Dungeon_UI.Battle; break; } Wild_Init_Move(strs[2]); Wild_Init_Monster(strs[3]); /* * Wild_Init_Item(strs[5]); * Wild_Init_Map(strs[7]); */ }
// public bool Wild_Rooms_Find_SetUI(int _roomNumber) { // FindRoom bool res = false; if (m_l_room[_roomNumber].Wild_GetNumber().Equals(_roomNumber)) { m_roomCount = _roomNumber; res = true; } else { for (int i = 0; i < m_l_room.Count; i++) { if (m_l_room[i].Wild_GetNumber().Equals(_roomNumber)) { m_roomCount = i; res = true; break; } } } // SetUI if (res) { Wild_Dungeon_Room room = m_l_room[m_roomCount]; Wild_Dungeon_UI temp = room.Wild_GetDungeonType(); Wild_SetActive((int)temp); switch (temp) { case Wild_Dungeon_UI.Move: { m_c_move.Wild_SettingBtnActive(room.Wild_GetMoving()); } break; case Wild_Dungeon_UI.Battle: { } break; } } return(res); }