void InitializeComponent() { m_cVillageManager = this.GetComponent <CVillageManager>(); m_cWeaponShop = this.GetComponent <CWeaponShop>(); m_cGoodsShop = this.GetComponent <CGoodsShop>(); m_cShopCategory = this.GetComponent <CShopCategory>(); m_cEntryDungeon = this.GetComponent <CEntryDungeon>(); }
void Awake() { m_shop_Catergory = GameObject.Find("inst_Shop_CatergoryList").gameObject; m_shopcheck = this.GetComponent <CVillageManager>(); m_cWeaponShop = this.GetComponent <CWeaponShop>(); m_cGoodsShop = this.GetComponent <CGoodsShop>(); m_cItemShopManager = this.GetComponent <CItemShopSlotListManager>(); m_cEntryDungeon = this.GetComponent <CEntryDungeon>(); }
public void InitVillageManager() { selectShop = null; m_shopPanel = GameObject.Find("00_inst_Shop_Panel") as GameObject; //ryu //m_weaponShopScrollViewObj = GameObject.Find("03_inst_ItemList_ScrollView").gameObject; //m_itemList_Content = m_weaponShopScrollViewObj.transform.Find("ItemList_Viewport").transform.Find("ItemList_Content").gameObject; m_cGoodsShop = this.gameObject.GetComponent <CGoodsShop>(); m_cWeaponShop = this.gameObject.GetComponent <CWeaponShop>(); m_cShopCategory = this.gameObject.GetComponent <CShopCategory>(); m_cEntryDungeon = this.gameObject.GetComponent <CEntryDungeon>(); m_rayStateCheckObj = GameObject.FindGameObjectWithTag("RayCheck"); m_childCount = m_shopPanel.transform.childCount; }