Exemplo n.º 1
0
    private void spawnBullet()
    {
        bullets.SetTarget(characterPos.position);
        GameObject theBullet = Instantiate(bulletPrefab) as GameObject;

        theBullet.transform.position = transform.position;
    }