public void StateAwake() { timer = timeToDissapear; TripleBombAttack bombCaster = Instantiate(this.bombCaster); bombCaster.SetTarget(target); bombCaster.transform.position = bombSpawnPoint.position; bombCaster.transform.parent = bombSpawnPoint; }
IEnumerator WaitCooldownToAttack() { yield return(new WaitForSeconds(attackCooldown)); TripleBombAttack bombCaster = Instantiate(this.bombCaster); bombCaster.SetTarget(player); bombCaster.transform.position = bombSpawnPoint.position; bombCaster.transform.parent = bombSpawnPoint; }