// Start is called before the first frame update void Start() { myGameController = GameObject.FindWithTag("System").transform.Find("GameController").GetComponent <GameController>(); myEnemy = GameObject.FindWithTag("Enemy").GetComponent <Enemy>(); myWarningController = GameObject.FindWithTag("System").transform.Find("UIController").transform.Find("UI-World").GetChild(0).GetComponent <AttackWarningController>(); attack = myEnemy.getAttackDamage(); destoriedHeight = 0f; }
// Start is called before the first frame update void Start() { myGameController = GameObject.FindWithTag("System").transform.Find("GameController").GetComponent <GameController>(); mySpawnController = GameObject.FindWithTag("System").transform.Find("SpawnController").GetComponent <SpawnController>(); myWarningController = GameObject.FindWithTag("System").transform.Find("UIController").transform.Find("UI-World").GetChild(0).GetComponent <AttackWarningController>(); myBossFieldUIController = bossField.GetComponent <BossFieldUIController>(); attackMaterial = null; towerX = mySpawnController.getTowersX(); attackGap = 10; attackTimer = attackGap; }