void Awake() { if (Instance != null) { Object.Destroy(Instance); Instance = null; } Instance = this; m_IsInitialized = false; IsShown = false; m_ItemScroller = new GuiShopItemScroller(ScrollBarPrefab); //m_ItemScroller.m_DebugName = "Equip scroller"; LastSelectedItem = ShopItemId.EmptyId; }
//-------------------------------------------- MONO BEAHVIOUR void Awake() { //create scrollbar instance m_ShopScroller = new GuiShopItemScroller(ScrollBarPrefab); }