Exemple #1
0
    public void StateAwake()
    {
        timer = timeToDissapear;
        TripleBombAttack bombCaster = Instantiate(this.bombCaster);

        bombCaster.SetTarget(target);
        bombCaster.transform.position = bombSpawnPoint.position;
        bombCaster.transform.parent   = bombSpawnPoint;
    }
Exemple #2
0
    IEnumerator WaitCooldownToAttack()
    {
        yield return(new WaitForSeconds(attackCooldown));

        TripleBombAttack bombCaster = Instantiate(this.bombCaster);

        bombCaster.SetTarget(player);
        bombCaster.transform.position = bombSpawnPoint.position;
        bombCaster.transform.parent   = bombSpawnPoint;
    }