mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
cleanup
This commit is contained in:
parent
5690553ba5
commit
f423166da9
@ -13,7 +13,7 @@ namespace QSB.OrbSync.WorldObjects
|
||||
private bool _initialized;
|
||||
private Text _debugBoxText;
|
||||
|
||||
public override void OnRemoval()
|
||||
public override void OnRemoval()
|
||||
=> UnityEngine.Object.Destroy(_debugBoxText.gameObject);
|
||||
|
||||
public override void Init(NomaiInterfaceSlot slot, int id)
|
||||
|
@ -1,7 +1,6 @@
|
||||
using OWML.Common;
|
||||
using QSB.Events;
|
||||
using QSB.Messaging;
|
||||
using QSB.SectorSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using System.Linq;
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
using QSB.Events;
|
||||
using QSB.Messaging;
|
||||
using QSB.QuantumSync;
|
||||
using QSB.SectorSync.WorldObjects;
|
||||
using QSB.TranslationSync;
|
||||
using QSB.TranslationSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
|
@ -39,10 +39,6 @@ namespace QSB.QuantumSync.WorldObjects
|
||||
// controlled by another player, dont care that we activate it
|
||||
return;
|
||||
}
|
||||
if (!QSBCore.IsInMultiplayer)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var id = QSBWorldSync.GetWorldObjects<IQSBQuantumObject>().ToList().IndexOf(this);
|
||||
// no one is controlling this object right now, request authority
|
||||
QSBEventManager.FireEvent(EventNames.QSBQuantumAuthority, id, QSBPlayerManager.LocalPlayerId);
|
||||
@ -56,10 +52,6 @@ namespace QSB.QuantumSync.WorldObjects
|
||||
// not being controlled by us, don't care if we leave area
|
||||
return;
|
||||
}
|
||||
if (!QSBCore.IsInMultiplayer)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var id = QSBWorldSync.GetWorldObjects<IQSBQuantumObject>().ToList().IndexOf(this);
|
||||
// send event to other players that we're releasing authority
|
||||
QSBEventManager.FireEvent(EventNames.QSBQuantumAuthority, id, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user