Exemplo n.º 1
0
    private void SpawnBullet(Transform bullet, Refractor side)
    {
        Transform    b  = Instantiate(bullet, side.spawnPoint.position, side.spawnPoint.rotation);
        LinearBullet lb = b.GetComponent <LinearBullet>();

        lb.Seek(side.GetDirection());
        lb.initialDecayTimer *= 0.75f;
        lb.decayTimer         = lb.initialDecayTimer;
    }