mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
slight slight cleanup
This commit is contained in:
parent
3a6a3240e6
commit
58e1c70c33
@ -60,7 +60,7 @@ namespace QSB.QuantumSync.WorldObjects
|
|||||||
{
|
{
|
||||||
if (shape is BoxShape boxShape)
|
if (shape is BoxShape boxShape)
|
||||||
{
|
{
|
||||||
var newCube = UnityEngine.Object.Instantiate(cube);
|
var newCube = Object.Instantiate(cube);
|
||||||
newCube.transform.parent = shape.transform;
|
newCube.transform.parent = shape.transform;
|
||||||
newCube.transform.localPosition = Vector3.zero;
|
newCube.transform.localPosition = Vector3.zero;
|
||||||
newCube.transform.localRotation = Quaternion.Euler(0, 0, 0);
|
newCube.transform.localRotation = Quaternion.Euler(0, 0, 0);
|
||||||
@ -68,7 +68,7 @@ namespace QSB.QuantumSync.WorldObjects
|
|||||||
}
|
}
|
||||||
else if (shape is SphereShape sphereShape)
|
else if (shape is SphereShape sphereShape)
|
||||||
{
|
{
|
||||||
var newSphere = UnityEngine.Object.Instantiate(sphere);
|
var newSphere = Object.Instantiate(sphere);
|
||||||
newSphere.transform.parent = shape.transform;
|
newSphere.transform.parent = shape.transform;
|
||||||
newSphere.transform.localPosition = Vector3.zero;
|
newSphere.transform.localPosition = Vector3.zero;
|
||||||
newSphere.transform.localRotation = Quaternion.Euler(0, 0, 0);
|
newSphere.transform.localRotation = Quaternion.Euler(0, 0, 0);
|
||||||
@ -204,7 +204,6 @@ namespace QSB.QuantumSync.WorldObjects
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var id = ObjectId;
|
|
||||||
// send event to other players that we're releasing authority
|
// send event to other players that we're releasing authority
|
||||||
((IQSBQuantumObject)this).SendMessage(new QuantumAuthorityMessage(0u));
|
((IQSBQuantumObject)this).SendMessage(new QuantumAuthorityMessage(0u));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user