Update PistolComponent.cs
This commit is contained in:
parent
970a2a5697
commit
ed815775eb
@ -142,8 +142,10 @@ namespace Item
|
|||||||
var projectile = Instantiate(projectilePrefab);
|
var projectile = Instantiate(projectilePrefab);
|
||||||
projectile.transform.position = bulletSpawnPoint.transform.position;
|
projectile.transform.position = bulletSpawnPoint.transform.position;
|
||||||
projectile.transform.rotation = bulletSpawnPoint.transform.rotation;
|
projectile.transform.rotation = bulletSpawnPoint.transform.rotation;
|
||||||
|
//Comment this line if you want to remove the mega scale.
|
||||||
projectile.transform.localScale =bulletSpawnPoint.transform.localScale;
|
projectile.transform.localScale =bulletSpawnPoint.transform.localScale;
|
||||||
InstanceFinder.ServerManager.Spawn(projectile); //var projectile = Instantiate(projectilePrefab, bulletSpawnPoint);
|
InstanceFinder.ServerManager.Spawn(projectile); //var projectile = Instantiate(projectilePrefab, bulletSpawnPoint);
|
||||||
|
|
||||||
|
|
||||||
//InstanceFinder.ServerManager.Spawn(projectile);
|
//InstanceFinder.ServerManager.Spawn(projectile);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user