private void AddRocket() { for (int i = 0; i < NumOfRockets; i++) { RocketController rocket = Instantiate(rocketPrefab, barrel.position, barrel.rotation, null).GetComponent <RocketController>(); rocket.Init(this); rockets.Add(rocket); } }