Ejemplo n.º 1
0
    IEnumerator Activation()
    {
        yield return(new WaitForSeconds(0.8f));

        GameObject tempBullet = Instantiate(bullet, transform.position, transform.rotation);

        tempBullet.transform.localScale += new Vector3(0.3f, 0.3f, 0);
        BulletScrpit bulletScript = tempBullet.GetComponent <BulletScrpit>();

        bulletScript.setStats(damage * 3, 1, pierce, bulletSize);
        Destroy(tempBullet, terminationTime);
        Vector3 tran = new Vector3(0, 600, 0);

        tran = transform.rotation * tran;
        player.GetComponent <Rigidbody2D>().AddForce(tran);
    }
Ejemplo n.º 2
0
 public virtual void triggerEffect(BulletScrpit bullet)
 {
 }