private void Awake() { shopObj = transform.Find("ShopObj").gameObject; shopObj.SetActive(true); shopCollider = MyFunc.GetObject(MyFunc.ObjType.SHOP_COLLIDER).GetComponent <ShopCollider>(); rollChamps = transform.Find("ShopObj/ChampContainer").GetComponent <RollChampions>(); }
private void Awake() { shopCollider = default; _rollChampions = new List <int>(); currentRoll = new List <ChampInstance>(); _nextRoll = new List <ChampInstance>(); isLocked = false; }
private void Awake() { shopCollider = transform.parent.GetComponent <ShopCollider>(); shopContainer = MyFunc.GetObject(MyFunc.ObjType.SHOP_CONTAINER).GetComponent <RollChampions>(); inven = MyFunc.GetObject(MyFunc.ObjType.INVENTORY).GetComponent <Inventory>(); gold = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <GoldUi>(); unitCount = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <UnitCount>(); msg = MyFunc.GetObject(MyFunc.ObjType.MESSAGE_BOX).GetComponent <MessageBox>(); }
public void SetupShopCollider(ShopCollider shopCollider_) { shopCollider = shopCollider_; shopCollider.PushCurrentRoll(currentRoll); shopCollider.InitColliderPos(); }