mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-27 03:35:20 +00:00
cleanup
This commit is contained in:
parent
cef3c382ea
commit
bfb2273b80
@ -4,7 +4,6 @@ using QSB.TransformSync;
|
|||||||
using QSB.Utility;
|
using QSB.Utility;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Networking;
|
using UnityEngine.Networking;
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
using QSB.Events;
|
using QSB.Events;
|
||||||
using QSB.Tools;
|
using QSB.Tools;
|
||||||
using QSB.Utility;
|
using QSB.Utility;
|
||||||
using System.Reflection;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Networking;
|
|
||||||
|
|
||||||
namespace QSB.TransformSync
|
namespace QSB.TransformSync
|
||||||
{
|
{
|
||||||
@ -41,6 +39,6 @@ namespace QSB.TransformSync
|
|||||||
return body.transform;
|
return body.transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsReady => Locator.GetPlayerTransform() != null && PlayerRegistry.PlayerExists(Player.PlayerId);
|
public override bool IsReady => Locator.GetPlayerTransform() != null && Player != null && PlayerRegistry.PlayerExists(Player.PlayerId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,6 +74,6 @@ namespace QSB.TransformSync
|
|||||||
SyncedTransform.localPosition = ReferenceSector.Transform.InverseTransformPoint(_disabledSocket.position);
|
SyncedTransform.localPosition = ReferenceSector.Transform.InverseTransformPoint(_disabledSocket.position);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsReady => Locator.GetProbe() != null && PlayerRegistry.PlayerExists(Player.PlayerId) && Player.IsReady;
|
public override bool IsReady => Locator.GetProbe() != null && Player != null && PlayerRegistry.PlayerExists(Player.PlayerId) && Player.IsReady;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,6 @@ namespace QSB.TransformSync
|
|||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsReady => Locator.GetPlayerTransform() != null && PlayerRegistry.PlayerExists(Player.PlayerId) && Player.IsReady;
|
public override bool IsReady => Locator.GetPlayerTransform() != null && Player != null && PlayerRegistry.PlayerExists(Player.PlayerId) && Player.IsReady;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,6 @@ namespace QSB.TransformSync
|
|||||||
return remoteTransform;
|
return remoteTransform;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsReady => GetShipModel() != null && PlayerRegistry.PlayerExists(Player.PlayerId) && Player.IsReady;
|
public override bool IsReady => GetShipModel() != null && Player != null && PlayerRegistry.PlayerExists(Player.PlayerId) && Player.IsReady;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,6 @@ namespace QSB.TransformSync
|
|||||||
|
|
||||||
public void SetReferenceSector(QSBSector sector)
|
public void SetReferenceSector(QSBSector sector)
|
||||||
{
|
{
|
||||||
DebugLog.DebugWrite($"Setting reference sector of {Player.PlayerId.Value}.{GetType().Name} to {sector.Name}");
|
|
||||||
_positionSmoothVelocity = Vector3.zero;
|
_positionSmoothVelocity = Vector3.zero;
|
||||||
ReferenceSector = sector;
|
ReferenceSector = sector;
|
||||||
if (!hasAuthority)
|
if (!hasAuthority)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user