reanimator
This commit is contained in:
@@ -250,6 +250,8 @@ namespace RebootKit.Engine.Simulation {
|
||||
}
|
||||
}
|
||||
|
||||
internal bool IsLocalOnly;
|
||||
|
||||
[SerializeField] internal Rigidbody actorRigidbody;
|
||||
[InfoBox("If empty, will use GetComponentsInChildren<Collider>() to find colliders.")]
|
||||
[SerializeField] Collider[] m_OverrideActorColliders;
|
||||
@@ -346,7 +348,7 @@ namespace RebootKit.Engine.Simulation {
|
||||
}
|
||||
|
||||
public void MountTo(Actor actor, string slotName) {
|
||||
if (!RR.IsServer()) {
|
||||
if (!RR.IsServer() && !IsLocalOnly) {
|
||||
s_ActorLogger.Error($"Only the server can mount actors. Actor: {name} (ID: {ActorID})");
|
||||
return;
|
||||
}
|
||||
@@ -370,7 +372,7 @@ namespace RebootKit.Engine.Simulation {
|
||||
}
|
||||
|
||||
public void UnMount() {
|
||||
if (!RR.IsServer()) {
|
||||
if (!RR.IsServer() && !IsLocalOnly) {
|
||||
s_ActorLogger.Error($"Only the server can unmount actors. Actor: {name} (ID: {ActorID})");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user