Exemplo n.º 1
0
 private void Start()
 {
     benchmarkPos = tileHandler.squareInstances[4].tile.transform.position;
     tileFinder   = tileFinderObj.GetComponent <TileFinder>();
     inven        = MyFunc.GetObject(MyFunc.ObjType.INVENTORY).GetComponent <Inventory>();
     unit         = inven.FindChampFromInstance(unitObj);
 }
Exemplo n.º 2
0
    private void Awake()
    {
        tileHandler  = MyFunc.GetObject(MyFunc.ObjType.TILE_CONTAINER).GetComponent <TileHandler>();
        detectedTile = new TileHandler.TileInfo();

        isChest = false;
    }
Exemplo n.º 3
0
    public void SetupList()
    {
        GameObject parrent = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI);

        objList = new List <GameObject>();
        objList.Add(parrent.transform.Find("MaxUnit").gameObject);
        objList.Add(parrent.transform.Find("ExpBall").Find("MaxUnit").gameObject);
    }
Exemplo n.º 4
0
 private void Awake()
 {
     goldUi     = GetComponent <GoldUi>();
     unitCount  = GetComponent <UnitCount>();
     goldStatue = MyFunc.GetObject(MyFunc.ObjType.FIXED_OBJECT).
                  transform.Find("GoldDragons").GetComponent <GoldStatue>();
     goldTextObj = transform.Find("Gold").gameObject;
 }
Exemplo n.º 5
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>();
    }
Exemplo n.º 6
0
 private void Awake()
 {
     tileHandler = MyFunc.GetObject(MyFunc.ObjType.FIXED_OBJECT).
                   transform.Find("Tiles").GetComponent <TileHandler>();
     goldUi    = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <GoldUi>();
     unitCount = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <UnitCount>();
     inven     = MyFunc.GetObject(MyFunc.ObjType.INVENTORY).GetComponent <Inventory>();
 }
    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>();
    }
Exemplo n.º 8
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>();
    }
Exemplo n.º 9
0
 private void Awake()
 {
     unitObj           = transform.parent.parent.gameObject;
     tileHandler       = MyFunc.GetObject(MyFunc.ObjType.TILE_CONTAINER).GetComponent <TileHandler>();
     landingTile       = new TileHandler.TileInfo();
     tileFinderObj     = unitObj.transform.Find("TileFinder").gameObject;
     posCorrectionZ    = 2.4f;
     posCorrectionX    = 1.5f;
     cameraCorrectionX = 0.05f;
     cameraCorrectionZ = 0.0415f;
 }
Exemplo n.º 10
0
 private void Awake()
 {
     currentExp = 0;
     maxExp     = 1;
     add        = 4;
     slider     = GetComponent <Image>();
     goldUi     = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <GoldUi>();
     unitCount  = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <UnitCount>();
     messageBox = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).
                  transform.Find("MessageBox").GetComponent <MessageBox>();
 }
Exemplo n.º 11
0
 // 켜지는 순간 target을 정하고 걸어간다.
 private void Awake()
 {
     playerInven   = MyFunc.GetObject(MyFunc.ObjType.INVENTORY).GetComponent <Inventory>();
     computerInven = MyFunc.GetObject(MyFunc.ObjType.ENEMY).
                     transform.Find("Inventory").GetComponent <Inventory>();
     target         = default;
     enemyList      = default;
     unitObj        = transform.parent.gameObject;
     unit           = default;
     myAni          = transform.parent.Find("character").GetComponent <Animator>();
     isEnemyInRange = false;
     moveSpeed      = 1.0f;
     attackSpeed    = 1.0f;
 }
Exemplo n.º 12
0
    private void Awake()
    {
        maxHp    = 100f;
        playerHp = maxHp;
        hpImg    = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).
                   transform.Find("HpBar/ForeImg").GetComponent <Image>();
        unitCount = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <UnitCount>();

        inven      = MyFunc.GetObject(MyFunc.ObjType.INVENTORY).GetComponent <Inventory>();
        enemyInven = MyFunc.GetObject(MyFunc.ObjType.ENEMY).
                     transform.Find("Inventory").GetComponent <Inventory>();
        enemys  = default;
        players = default;
    }
Exemplo n.º 13
0
    private void Awake()
    {
        _timer     = 30;
        turnSkip   = -1;
        _uiText    = GameObject.Find("Count").GetComponent <UnityEngine.UI.Text>();
        playBtn    = MyFunc.GetObject(MyFunc.ObjType.PLAY_BUTTON).GetComponent <PlayButton>();
        upgradeBtn = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).
                     transform.Find("UpgradeBtn").GetComponent <UpgradeBtn>();

        playerInven    = MyFunc.GetObject(MyFunc.ObjType.INVENTORY).GetComponent <Inventory>();
        playerGoldInfo = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <GoldUi>();

        enemyInven = MyFunc.GetObject(MyFunc.ObjType.ENEMY).transform.Find("Inventory").
                     GetComponent <Inventory>();
        enemyHandler  = MyFunc.GetObject(MyFunc.ObjType.ENEMY).GetComponent <EnemyHandler>();
        playerHandler = MyFunc.GetObject(MyFunc.ObjType.PLAYER).GetComponent <PlayerHandler>();
    }
Exemplo n.º 14
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;
    }
Exemplo n.º 15
0
 private void Awake()
 {
     gold = MyFunc.GetObject(MyFunc.ObjType.PLAYER_UI).GetComponent <GoldUi>();
 }
Exemplo n.º 16
0
 private void Awake()
 {
     inven         = MyFunc.GetObject(MyFunc.ObjType.INVENTORY).GetComponent <Inventory>();
     upgradeButton = transform.Find("Image").gameObject;
 }
Exemplo n.º 17
0
 private void Awake()
 {
     playImg      = transform.Find("Image").gameObject;
     timerHandler = MyFunc.GetObject(MyFunc.ObjType.TIMER).GetComponent <TimerHandler>();
     VisibleButton();
 }