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