Exemplo n.º 1
0
 private void Awake()
 {
     gold        = 4;
     interest    = 5;
     goldStatue  = default;
     currentGold = default;
 }
Exemplo n.º 2
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.º 3
0
 public void SetupObjs(GameObject myStatue, GameObject myGoldTextObj = default)
 {
     goldStatue = myStatue.GetComponent <GoldStatue>();
     if (myGoldTextObj != default)
     {
         currentGold = myGoldTextObj.transform.Find("Current").GetComponent <Text>();
     }
     UpdateText();
 }
Exemplo n.º 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;
    }