Beispiel #1
0
    public void SetUserDogInfo(RES_USERDOGINFO packet)
    {
        GameObject         pUI      = MonoBehaviour.Instantiate(AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/OtherPlayerProfile"), Vector3.zero, Quaternion.identity) as GameObject;
        OtherPlayerProfile pProfile = pUI.GetComponent <OtherPlayerProfile>();

        pProfile.Init(OnProfileExit, null, packet.userDogInfo, WorldManager.instance.m_player.CheckRoomLoadType(ROOM_LOAD_TYPE.NOFRIEND), true, packet.rateCntD, packet.isRatedD, null, 1);
    }
    private void InitScroll()
    {
        m_scrollView = m_window.FindChild("ScrollWindow/ScrollView").GetComponent <UIScrollView>();
        m_scrollGrid = m_scrollView.transform.FindChild("Grid").GetComponent <UIGrid>();
        m_scrollBar  = m_window.transform.FindChild("ScrollWindow/ScrollBar").GetComponent <UIScrollBar>();

        m_scrollItem = AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/UIImageFilterIcon");

        m_scrollItemList = new List <UIIcon>();

        List <ImageFilterInfo> infoList = null;

        if (WorldManager.instance.m_dataManager.m_imageFilterData.GetImageFilterList(out infoList))
        {
            for (int i = 0; i < infoList.Count; i++)
            {
                GameObject obj = MonoBehaviour.Instantiate(m_scrollItem) as GameObject;
                obj.transform.parent        = m_scrollGrid.transform;
                obj.transform.localPosition = Vector3.zero;
                obj.transform.localScale    = Vector3.one;

                m_scrollItemList.Add(new UIIcon(obj, infoList[i], new OnScrollItemClick(OnScrollItemClickCB)));
            }
        }
    }
Beispiel #3
0
    private IEnumerator WaitForTownOpenEffect(UIIcon icon)
    {
        m_isCloseLock = true;

        SoundManager.instance.PlayAudioClip("UI_Opentown");

        GameObject effect = Instantiate(AssetBundleEx.Load <GameObject>("[Prefabs]/[Effects]/FX_town_building_open")) as GameObject;

        effect.transform.position = icon.GetTransform.position;
        Util.SetGameObjectLayer(effect, LayerMask.NameToLayer("UIEffect"));

        yield return(new WaitForSeconds(1.5f));

        icon.Update();
        DestroyImmediate(effect);

        switch (StateManager.instance.m_curStateType)
        {
        case STATE_TYPE.STATE_ROOM:
            break;

        case STATE_TYPE.STATE_VILLAGE:
            GUIManager_Village guiVillage = ((State_Village)StateManager.instance.m_curState).m_guiVillageManager;
            guiVillage.HIdeAndLockUI();

            yield return(new WaitForSeconds(0.5f));

            break;
        }

        m_isCloseLock = false;

        NetworkManager.instance.SendTownEnter(WorldManager.instance.m_player.m_lastTown);
    }
Beispiel #4
0
    /// <summary>
    /// <para>name : InitCarList</para>
    /// <para>describe : 자동차, 배 오브젝트 불러오기 및 초기화.</para>
    /// <para>tag : [email protected]</para>
    /// </summary>
    private void InitMovingObjectList()
    {
        Dictionary <int, string[]> carObjectPathTable = new Dictionary <int, string[]>();

        carObjectPathTable.Add(1, new string[] { "[Prefabs]/[Others]/Prb_Bus01", "[Prefabs]/[Others]/Prb_Car01" });
        carObjectPathTable.Add(2, new string[] { "[Prefabs]/[Others]/Prb_Car02", "[Prefabs]/[Others]/Prb_Car03", "[Prefabs]/[Others]/Prb_Car04" });

        int currentTownCode = WorldManager.instance.m_town.CurrentTownCode;

        GameObject[] carObjectArray = new GameObject[carObjectPathTable.ContainsKey(currentTownCode) ?
                                                     carObjectPathTable[currentTownCode].Length : 0];

        for (int i = 0; i < carObjectPathTable[currentTownCode].Length; i++)
        {
            carObjectArray[i] = AssetBundleEx.Load <GameObject>(carObjectPathTable[currentTownCode][i]);
        }

        m_carGroup = new Transform[MAX_CAR];
        for (int i = 0; i < MAX_CAR; i++)
        {
            m_carGroup[i] = Instantiate(carObjectArray[Random.Range(0, carObjectArray.Length)].transform, Vector3.one * 9999.0f, Quaternion.identity) as Transform;

            m_carGroup[i].parent          = m_villageManager.m_panelGroup[(int)GUIManager_Village.PANEL_TYPE.PANEL_S01];
            m_carGroup[i].gameObject.name = string.Format("Car_{0:D2}", i);
            m_carGroup[i].localScale      = Vector3.one * 360.0f;

            Util.SetGameObjectLayer(m_carGroup[i].gameObject, LayerMask.NameToLayer("Background"));
        }

        m_shipObj = m_objectGroup[(int)GUIManager_Village.PANEL_TYPE.PANEL_S01].FindChild("MoveShip");
    }
Beispiel #5
0
    private void OnLevelUpWindowClick(GameObject obj)
    {
        if (isOpenComplete == false)
        {
            return;
        }

        for (int i = 0; i < m_levelInfo.levelUpRefArray.Length; i++)
        {
            if (m_levelInfo.levelUpRefArray[i].index.Equals(0) == false)
            {
                if (m_uiUnlockView == null || m_uiUnlockView.CheckUIExists == false)
                {
                    GameObject view = MonoBehaviour.Instantiate(AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/UI_S108_Contents_Unlock")) as GameObject;
                    view.transform.parent        = m_obj.transform;
                    view.transform.localPosition = Vector3.zero;
                    view.transform.localScale    = Vector3.one;

                    m_uiUnlockView = new UIUserLevelUnlockView(view);
                }

                m_uiUnlockView.OpenPopup();
                m_transform.gameObject.SetActive(false);

                return;
            }
        }

        UserInfo.instance.CloseLevelUp();
    }
        private void InitIcon()
        {
            m_icon.material = MonoBehaviour.Instantiate(AssetBundleEx.Load <Material>("[Materials]/[PhotoStudio]/Mat_PhotoStudio_FilterIcon")) as Material;
            WorldManager.instance.m_dataManager.m_imageFilterData.SetImageFilter(m_icon, m_info);

            m_name.text = m_info.name;
        }
Beispiel #7
0
    private void CreateWindow()
    {
        GameObject createObj = Instantiate(AssetBundleEx.Load <GameObject>(ACHIEVEMENTWINDOW_PATH)) as GameObject;

        createObj.transform.localPosition = Vector3.zero;
        createObj.transform.localScale    = Vector3.one;

        m_achieveWindow = createObj.GetComponent <AchievementWindow>();
    }
Beispiel #8
0
    /// <summary>
    /// <para>name : Init</para>
    /// <para>describe : 유저 정보 HUD를 생성하고, parent 밑에 붙입니다. parent가 null값일 시, Active가 꺼진 상태가 됩니다.</para>
    /// <para>tag : [email protected]</para>
    /// </summary>
    public void Init(Transform parent)
    {
        if (m_uiUserInfo == null || m_uiUserInfo.CheckUIUserInfoExists == false)
        {
            m_uiUserInfo = new UIUserInfo(Instantiate(AssetBundleEx.Load <GameObject>(USERINFO_PATH)) as GameObject);
        }

        m_uiUserInfo.Init(parent);

        InitUIDogLevelUp();
    }
Beispiel #9
0
    private void InitScroll()
    {
        m_itemObj  = AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/LevelUnlock_ScrollItem");
        m_itemList = new List <UIScrollItem>();

        m_scrollPanel = m_transform.FindChild("ScrollWindow/ScrollView").GetComponent <UIPanel>();
        m_scrollView  = m_scrollPanel.GetComponent <UIScrollView>();
        m_scrollGrid  = m_scrollPanel.transform.FindChild("Grid").GetComponent <UIGrid>();

        InitItem();
    }
Beispiel #10
0
    public void UpdateBackgroundTexture(string textureName)
    {
        m_uiBackgroundSelectPopup.ClosePopup();
        if (textureName.Equals(m_state.GetBackgroundTextureName) == false)
        {
            Texture texture = AssetBundleEx.Load <Texture>(string.Format("[Textures]/[PhotoStudio]/{0}", textureName));
            StartCoroutine("OnUpdateBackgroundTexture", texture);

            texture = null;
        }
    }
Beispiel #11
0
    public void OpenLevelUp()
    {
        if (m_uiUserLevelUp == null || m_uiUserLevelUp.CheckUIExists == false)
        {
            GameObject levelUpWindow = Instantiate(AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/UI_S107_LevelUp")) as GameObject;
            levelUpWindow.name = "UI_S99_LevelUp";

            m_uiUserLevelUp = new UIUserLevelUp(levelUpWindow);
        }

        m_uiUserLevelUp.OpenPopup();
    }
Beispiel #12
0
    public void InitUIDogLevelUp()
    {
        if (m_UIDogLevelUp == null || m_UIDogLevelUp.GetTransform == null)
        {
            GameObject obj = Instantiate(AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/UI_S109_DogLevelUp"), Vector3.zero, Quaternion.identity) as GameObject;
            obj.transform.name          = "UI_S109_DogLevelUp";
            obj.transform.localPosition = Vector3.zero;
            obj.transform.localScale    = Vector3.one;

            m_UIDogLevelUp = obj.AddComponent <UIDogLevelUp>();
            m_UIDogLevelUp.InitUIDogLevelUp();
        }
    }
Beispiel #13
0
    /// <summary>
    /// <para>name : AddExtraUserInfo</para>
    /// <para>describe : 메인 재화 HUD와 별개로, 따로 표시와 업데이트가 가능한 재화 HUD를 생성하고, parent 밑에 붙입니다.
    ///                      (주의!) 이 HUD 오브젝트는 리턴받은 UIUserInfo로 따로 관리해주세요. UserInfo.Instance로 관리되지 않습니다!
    /// <para>tag : [email protected]</para>
    /// </summary>
    public UIUserInfo AddExtraUserInfo(Transform parent, bool isUser = true)
    {
        UIUserInfo uiUserInfo = null;

        #region Instantiate
        uiUserInfo = new UIUserInfo(Instantiate(AssetBundleEx.Load <GameObject>(USERINFO_PATH)) as GameObject);
        #endregion

        #region InitUserInfo
        uiUserInfo.Init(parent);
        uiUserInfo.UpdateInfo(isUser);
        #endregion

        return(uiUserInfo);
    }
Beispiel #14
0
    public void OpenLevelUpScenario(UserLevelInfo info)
    {
        if (m_uiLevelUpScenario == null || m_uiLevelUpScenario.CheckUIExists == false)
        {
            GameObject levelUpScenario = Instantiate(AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/UI_S99_LevelUpTitle")) as GameObject;
            levelUpScenario.name = "UI_S99_LevelUpTitle";

            m_uiLevelUpScenario = new UILevelUpScenario(levelUpScenario);
        }

        StateManager.instance.m_curState.OnOffGUIState(false);

        m_uiLevelUpScenario.SetActive(true);
        StartCoroutine(m_uiLevelUpScenario.TitleTweenStart(info));
    }
Beispiel #15
0
    public UIAchieveScrollGroup(GameObject obj)
    {
        m_obj       = obj;
        m_transform = obj.transform;

        m_background = obj.GetComponent <UISprite>();

        m_titleGroup = m_transform.FindChild("Title_Group").gameObject;
        m_titleLabel = m_transform.FindChild("Title_Group/Title").GetComponent <UILabel>();

        m_itemObj  = AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/UIAchieve_Item");
        m_itemList = new List <UIAchieveInfoItem>();

        SetActive(false);
    }
Beispiel #16
0
    private void InitItem()
    {
        GameObject createObj = AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/UIAchieve_ScrollGroup");

        m_scrollGroupList = new List <UIAchieveScrollGroup>();

        for (int i = 0; i < SCROLL_GROUP_SIZE; i++)
        {
            GameObject obj = MonoBehaviour.Instantiate(createObj) as GameObject;
            obj.transform.parent        = m_scrollGrid;
            obj.transform.localScale    = Vector3.one;
            obj.transform.localPosition = Vector3.zero;

            UIAchieveScrollGroup item = new UIAchieveScrollGroup(obj);
            m_scrollGroupList.Add(item);
        }
    }
    private void InitUI()
    {
        m_transform = transform;

        m_window   = m_transform.FindChild("ScreenShot/Anchor_Center/Window");
        m_uiWindow = new UIWindow(this, m_transform.FindChild("UI").gameObject);

        m_baseMaterial = AssetBundleEx.Load <Material>("[Materials]/[PhotoStudio]/Mat_PhotoStudio_Result");

        m_uiTexture          = m_window.FindChild("ScreenShot").GetComponent <UITexture>();
        m_uiTexture.material = Instantiate(m_baseMaterial) as Material;

        m_edge = m_window.FindChild("Edge").GetComponent <UISprite>();

        SetUISize(BASE_SCALE);

        m_workTimeline = new PhotoStudioWorkTimeline(this);
    }
Beispiel #18
0
    private void EditorInitMovingObjectList()
    {
        GameObject[] carObject = new GameObject[3];
        carObject[0] = AssetBundleEx.Load <GameObject>("[Prefabs]/[Others]/Prb_Car02");
        carObject[1] = AssetBundleEx.Load <GameObject>("[Prefabs]/[Others]/Prb_Car03");
        carObject[2] = AssetBundleEx.Load <GameObject>("[Prefabs]/[Others]/Prb_Car04");

        m_carGroup = new Transform[EDITOR_MAX_CAR];
        for (int i = 0; i < EDITOR_MAX_CAR; i++)
        {
            m_carGroup[i] = Instantiate(carObject[Random.Range(0, carObject.Length)].transform, Vector3.one * 9999.0f, Quaternion.identity) as Transform;

            m_carGroup[i].parent          = transform.FindChild("S01_Group");
            m_carGroup[i].gameObject.name = string.Format("Car_{0:D2}", i);
            m_carGroup[i].localScale      = Vector3.one * 360.0f;

            Util.SetGameObjectLayer(m_carGroup[i].gameObject, LayerMask.NameToLayer("Background"));
        }
    }
Beispiel #19
0
    private Texture2D GetTexture()
    {
        string     texturePath = "";
        STATE_TYPE type        = StateManager.instance.m_curStateType;

        if (type.Equals(STATE_TYPE.STATE_ROOM))
        {
            texturePath = "[Textures]/[ScreenOut]/Tex_LoadingScene_04";
        }
        else if (type.Equals(STATE_TYPE.STATE_VILLAGE))
        {
            texturePath = "[Textures]/[ScreenOut]/Tex_LoadingScene_03";
        }
        else
        {
            return(null);
        }

        return(AssetBundleEx.Load <Texture2D>(texturePath));
    }
Beispiel #20
0
    /// <summary>
    /// <para>name : InitBuildingDummy</para>
    /// <para>describe : 빌딩/레벨 표지판 더미 위치 데이터를 초기화.</para>
    /// <para>tag : [email protected]</para>
    /// </summary>
    private void InitBuildingDummy()
    {
        m_dicBuildingDummy  = new Dictionary <int, Transform>();
        m_dicLevelFlagDummy = new Dictionary <int, Transform>();

        Transform buildingGroup = transform.FindChild("Building_Group");

        for (int i = 0; i < buildingGroup.childCount; i++)
        {
            Transform child = buildingGroup.GetChild(i);
            if (child.name.Contains("Building_"))
            {
                int    index    = 0;
                string indexStr = child.name.Replace("Building_", "");
                if (int.TryParse(indexStr, out index))
                {
                    if (m_dicBuildingDummy.ContainsKey(index))
                    {
                        m_dicBuildingDummy[index] = child;
                    }
                    else
                    {
                        m_dicBuildingDummy.Add(index, child);
                    }

                    Transform levelChild = child.FindChild("LevelFlag");
                    if (m_dicLevelFlagDummy.ContainsKey(index))
                    {
                        m_dicLevelFlagDummy[index] = levelChild;
                    }
                    else
                    {
                        m_dicLevelFlagDummy.Add(index, levelChild);
                    }
                }
            }
        }

        m_buildingButtonGroup  = new List <BuildingButton>();
        m_buildingButtonObject = AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/Town_Building_Button");
    }
Beispiel #21
0
    public UIUserLevelUp(GameObject obj)
    {
        m_obj       = obj;
        m_transform = obj.transform.FindChild("Anchor_Center/Window");

        #region Label
        m_labelArray = new UILabel[(int)LABEL_TYPE.TYPE_END];
        string[] labelPathArray = { "Level_Group/Level", "Reward_Group/Gems_Group/Value" };
        for (int i = 0; i < labelPathArray.Length; i++)
        {
            m_labelArray[i] = m_transform.FindChild(labelPathArray[i]).GetComponent <UILabel>();
        }
        #endregion

        #region Sprite
        m_spriteArray = new UISprite[(int)SPRITE_TYPE.TYPE_END];
        string[] spritePathArray = { "Reward_Group/Item_Group/Item_Icon_Group/Icon", "Reward_Group/Gems_Group/Icon" };
        for (int i = 0; i < spritePathArray.Length; i++)
        {
            m_spriteArray[i] = m_transform.FindChild(spritePathArray[i]).GetComponent <UISprite>();
        }
        #endregion

        #region Object
        string[] objPathArray = { "Title_Group", "Reward_Group", "Reward_Group/Item_Group", "Reward_Group/Gems_Group" };
        m_objArray = new GameObject[(int)OBJECT_TYPE.TYPE_END];

        for (int i = 0; i < objPathArray.Length; i++)
        {
            m_objArray[i] = m_transform.FindChild(objPathArray[i]).gameObject;
        }
        m_objArray[(int)OBJECT_TYPE.TYPE_EFFECT] = AssetBundleEx.Load <GameObject>("[Prefabs]/[Effects]/FX_UI_LevelUp");
        #endregion

        #region Callback
        m_transform.GetComponent <UIEventListener>().onTutorialClick = OnLevelUpWindowClick;
        #endregion

        OnOffTitleGroup(false, true);
        OnOffRewardGroup(false, true);
    }
    private void InitEmojiList()
    {
        m_getItemCount = 0;

        m_emojiItemGroup = m_window.FindChild("PhotoEmojiGroup");

        m_emojiItem       = AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/PhotoEmoji");
        m_emojiItemList   = new List <PhotoStudioEmojiItem>();
        m_installItemList = new List <PhotoStudioEmojiItem>();

        for (int i = 0; i < MAX_EMOJI_COUNT; i++)
        {
            GameObject obj = Instantiate(m_emojiItem) as GameObject;
            obj.transform.parent        = m_emojiItemGroup;
            obj.transform.localPosition = Vector3.zero;
            obj.transform.localScale    = Vector3.one;
            obj.name = string.Format("EmojiItem_{0:D2}", i);

            m_emojiItemList.Add(obj.GetComponent <PhotoStudioEmojiItem>());
        }
    }
Beispiel #23
0
    void Awake()
    {
        m_transform = transform;
        m_window    = m_transform.FindChild("Anchor_Center/Window");

        #region Button
        m_window.FindChild("CloseButton").GetComponent <UIEventListener>().onClick = OnClose;
        m_window.FindChild("HelpButton").GetComponent <UIEventListener>().onClick  = OnHelp;
        #endregion

        #region Tab
        SelectTab selectTab = new SelectTab(OnSelectTab);
        m_tabGroup = new UITab[(int)ACHIEVE_TAB_TYPE.TYPE_END];
        string[] tabPathArray = { "Tab_Group/Daily_Tab", "Tab_Group/Progress_Tab", "Tab_Group/Complete_Tab" };

        for (int i = 0; i < tabPathArray.Length; i++)
        {
            m_tabGroup[i] = new UITab(m_window.FindChild(tabPathArray[i]).gameObject, (ACHIEVE_TAB_TYPE)i, selectTab);
        }
        #endregion

        #region Scroll
        m_scrollPanel = m_window.FindChild("ScrollWindow/ScrollView").GetComponent <UIPanel>();
        m_scrollView  = m_scrollPanel.GetComponent <UIScrollView>();
        m_scrollGrid  = m_scrollPanel.transform.FindChild("Grid");
        m_scrollBar   = m_window.FindChild("ScrollWindow/ScrollBar").GetComponent <UIScrollBar>();

        m_emptyView = m_window.FindChild("ScrollWindow/EmptyView").gameObject;

        InitItem();
        #endregion

        #region Object
        GameObject tooltipObj = Instantiate(AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/UIItemTooltip")) as GameObject;
        tooltipObj.transform.parent        = m_window;
        tooltipObj.transform.localPosition = Vector3.zero;
        tooltipObj.transform.localScale    = Vector3.one;
        m_uiItemTooltip = tooltipObj.GetComponent <UIItemTooltip>();
        #endregion
    }
Beispiel #24
0
    private void InitTalkDummy()
    {
        m_dicTalkDummy = new Dictionary <int, Transform>();
        Transform talkGroup = transform.FindChild("Talk_Group");

        for (int i = 0; i < talkGroup.childCount; i++)
        {
            Transform child = talkGroup.GetChild(i);
            if (child.name.Contains("Talk_"))
            {
                int    index    = 0;
                string indexStr = child.name.Replace("Talk_", "");
                if (int.TryParse(indexStr, out index))
                {
                    if (m_dicTalkDummy.ContainsKey(index))
                    {
                        m_dicTalkDummy[index] = child;
                    }
                    else
                    {
                        m_dicTalkDummy.Add(index, child);
                    }
                }
            }
        }

        GameObject talkObj = AssetBundleEx.Load <GameObject>("[Prefabs]/[Gui]/UITownTalkItem");

        m_talkGroup = new List <TownTalkItem>();
        for (int i = 0; i < 15; i++)
        {
            GameObject obj = Instantiate(talkObj) as GameObject;
            obj.transform.parent     = m_villageManager.m_panelGroup[(int)GUIManager_Village.PANEL_TYPE.PANEL_S13];
            obj.transform.localScale = Vector3.one;
            Util.SetGameObjectLayer(obj, LayerMask.NameToLayer("UIBackground"));

            m_talkGroup.Add(obj.GetComponent <TownTalkItem>());
        }
    }
Beispiel #25
0
        public UIDogIcon(GameObject obj)
        {
            m_obj       = obj;
            m_transform = obj.transform;

            #region Object
            m_selectObj = MonoBehaviour.Instantiate(AssetBundleEx.Load <GameObject>("[Prefabs]/[Effects]/FX_UI_Select02")) as GameObject;
            m_selectObj.transform.parent        = m_transform;
            m_selectObj.transform.localScale    = Vector3.one;
            m_selectObj.transform.localPosition = Vector3.zero; // new Vector3(-1.0f, 4.0f, 0);

            m_dogIcon    = m_transform.FindChild("DogIcon").GetComponent <UISprite>();
            m_background = m_transform.FindChild("Background").GetComponent <UISprite>();

            m_slider = m_transform.FindChild("Slider").GetComponent <UISlider>();
            #endregion

            #region Callback
            m_obj.GetComponent <UIEventListener>().onClick = OnItemClick;
            #endregion

            SetActive(false);
        }
Beispiel #26
0
    /// <summary>
    /// <para>name : InitMissionDummy</para>
    /// <para>describe : 미션 더미 위치 데이터를 초기화.</para>
    /// <para>tag : [email protected]</para>
    /// </summary>
    private void InitMissionDummy()
    {
        m_dicMissionDummy = new Dictionary <int, Transform>();
        Transform missionGroup = transform.FindChild("Mission_Group");

        for (int i = 0; i < missionGroup.childCount; i++)
        {
            Transform child = missionGroup.GetChild(i);
            if (child.name.Contains("Mission_"))
            {
                int    index    = 0;
                string indexStr = child.name.Replace("Mission_", "");
                if (int.TryParse(indexStr, out index))
                {
                    if (m_dicMissionDummy.ContainsKey(index))
                    {
                        m_dicMissionDummy[index] = child;
                    }
                    else
                    {
                        m_dicMissionDummy.Add(index, child);
                    }
                }
            }
        }

        m_eventObjGroup = new List <TownEventTrigger>();

        string[] townEventObjPath = { "",                                       "[Prefabs]/[Gui]/TownEventTrigger_Gold", "[Prefabs]/[Gui]/TownEventTrigger_Event", "[Prefabs]/[Gui]/TownEventTrigger_Gold",
                                      "[Prefabs]/[Gui]/TownEventTrigger_Event", "[Prefabs]/[Gui]/TownEventTrigger_Event" };
        m_townEventObjectGroup = new GameObject[(int)TOWN_OBJ_TYPE.TYPE_END];

        for (int i = 0; i < townEventObjPath.Length; i++)
        {
            m_townEventObjectGroup[i] = AssetBundleEx.Load <GameObject>(townEventObjPath[i]);
        }
    }