Пример #1
0
    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>();
    }
Пример #2
0
 private void Awake()
 {
     shopCollider   = default;
     _rollChampions = new List <int>();
     currentRoll    = new List <ChampInstance>();
     _nextRoll      = new List <ChampInstance>();
     isLocked       = false;
 }
Пример #3
0
    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>();
    }
Пример #4
0
 public void SetupShopCollider(ShopCollider shopCollider_)
 {
     shopCollider = shopCollider_;
     shopCollider.PushCurrentRoll(currentRoll);
     shopCollider.InitColliderPos();
 }