Update PistolComponent.cs
This commit is contained in:
parent
f668a66bb9
commit
c7591bbb67
@ -53,6 +53,7 @@ namespace Item
|
|||||||
public override void OnStartClient()
|
public override void OnStartClient()
|
||||||
{
|
{
|
||||||
base.OnStartClient();
|
base.OnStartClient();
|
||||||
|
|
||||||
if (!IsOwner)
|
if (!IsOwner)
|
||||||
{
|
{
|
||||||
this.enabled = false;
|
this.enabled = false;
|
||||||
@ -142,7 +143,9 @@ namespace Item
|
|||||||
shootLight.gameObject.SetActive(true);
|
shootLight.gameObject.SetActive(true);
|
||||||
|
|
||||||
var projectile = Instantiate(projectilePrefab, bulletSpawnPoint);
|
var projectile = Instantiate(projectilePrefab, bulletSpawnPoint);
|
||||||
InstanceFinder.ServerManager.Spawn(projectile);
|
|
||||||
|
InstanceFinder.ServerManager.Spawn(projectile,Owner);
|
||||||
|
|
||||||
|
|
||||||
projectile.transform.localPosition = Vector3.zero;
|
projectile.transform.localPosition = Vector3.zero;
|
||||||
projectile.transform.localEulerAngles = Vector3.zero;
|
projectile.transform.localEulerAngles = Vector3.zero;
|
||||||
|
Reference in New Issue
Block a user