mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
remove logs
This commit is contained in:
parent
d145630396
commit
5dd6abf3ba
@ -27,7 +27,6 @@ void DestroySelf()
|
|||||||
// return to prefab pool
|
// return to prefab pool
|
||||||
NetworkServer.UnSpawn(gameObject);
|
NetworkServer.UnSpawn(gameObject);
|
||||||
PrefabPool.singleton.Return(gameObject);
|
PrefabPool.singleton.Return(gameObject);
|
||||||
Debug.Log("[Server]: Returned projectile to pool");
|
|
||||||
//NetworkServer.Destroy(gameObject);
|
//NetworkServer.Destroy(gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,6 @@ void Update()
|
|||||||
void CmdFire()
|
void CmdFire()
|
||||||
{
|
{
|
||||||
GameObject projectile = PrefabPool.singleton.Get(projectileMount.position, projectileMount.rotation);
|
GameObject projectile = PrefabPool.singleton.Get(projectileMount.position, projectileMount.rotation);
|
||||||
Debug.Log("[Server]: Got projectile from pool");
|
|
||||||
NetworkServer.Spawn(projectile);
|
NetworkServer.Spawn(projectile);
|
||||||
RpcOnFire();
|
RpcOnFire();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user