예제 #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>();
    }
    private void Awake()
    {
        _containerHandler = GameObject.Find("Shop/ShopObj/ChampContainer").GetComponent <RollChampions>();
        _lockHandler      = GameObject.Find("Shop/ShopObj/ShopUi/LockButton").GetComponent <LockHandler>();
        rerollCost        = 2;

        goldUi = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <GoldUi>();
        msg    = MyFunc.GetObject(MyFunc.ObjType.MESSAGE_BOX).GetComponent <MessageBox>();
    }
예제 #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
    private void Awake()
    {
        tileHandler = transform.Find("Tiles").GetComponent <TileHandler>();

        goldUi     = transform.Find("EnemyInfo").GetComponent <GoldUi>();
        unitCount  = transform.Find("EnemyInfo").GetComponent <UnitCount>();
        goldStatue = transform.Find("GoldDragons").GetComponent <GoldStatue>();
        container  = transform.Find("ChampContainer").GetComponent <RollChampions>();

        hpImg   = transform.Find("EnemyUi/HpBar/ForeImg").GetComponent <Image>();
        maxHp   = 100f;
        enemyHp = maxHp;

        inven       = transform.Find("Inventory").GetComponent <Inventory>();
        playerInven = MyFunc.GetObject(MyFunc.ObjType.INVENTORY).GetComponent <Inventory>();
        enemys      = default;
        players     = default;
    }
예제 #5
0
 private void Start()
 {
     _containerHandler = GameObject.Find("Shop/ShopObj/ChampContainer").GetComponent <RollChampions>();
 }