diff --git a/Assets/ControlGun.cs b/Assets/ControlGun.cs index 55cdf57..3000d26 100644 --- a/Assets/ControlGun.cs +++ b/Assets/ControlGun.cs @@ -14,7 +14,7 @@ void Start(){ Vector2 offset = new Vector2(1000, 1000); for (int i = 0; i < maxBullets; i++){ - bullets[i] = Instantiate(bullet, transform.position, transform.rotation) as GameObject; + bullets[i] = Instantiate(bullet, offset, transform.rotation) as GameObject; } } @@ -28,6 +28,5 @@ void Update (){ void Shoot(){ bullets[bulletIndex].gameObject.transform.GetComponent().Renew(transform.position, (transform.rotation * Vector3.up).normalized * 0.1f); bulletIndex = (bulletIndex + 1) % maxBullets; - print("argh"); } } \ No newline at end of file