// Load Ammo Properties public void LoadAmmo() { BulletScript bulletScript = tankFireParameter.bulletType.GetComponent <BulletScript>(); BulletSpeed = bulletScript.Speed; BulletSpeedCurrent = BulletSpeed; StartCoroutine(bulletScript.InitWeaponSound()); BulletGravityCurrent = bulletScript.GravityDamper; projectile.Gravity = BulletGravityCurrent; projectile.Velocity = BulletSpeedCurrent; if (tankInitSystem.PSParameter.vehicleType == VehicleType.SPG) { SPGIndicate = Instantiate(Resources.Load("Effects/SPGIndicate")) as GameObject; } }