private void spawnBullet() { bullets.SetTarget(characterPos.position); GameObject theBullet = Instantiate(bulletPrefab) as GameObject; theBullet.transform.position = transform.position; }
private void spawnBullet() { bullets.SetTarget(characterPos.position); GameObject theBullet = Instantiate(bulletPrefab) as GameObject; theBullet.transform.position = transform.position; }