mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-20 15:41:01 +00:00
more cleanup
This commit is contained in:
parent
70c80ae021
commit
04a69f66f3
@ -34,7 +34,6 @@ namespace QSB.DialogueConditionSync.Events
|
||||
{
|
||||
QSBWorldSync.SetDialogueCondition(message.ConditionName, message.ConditionState);
|
||||
}
|
||||
DebugLog.DebugWrite($"set {message.ConditionName} to {message.ConditionState}");
|
||||
DialogueConditionManager.SharedInstance.SetConditionState(message.ConditionName, message.ConditionState);
|
||||
}
|
||||
}
|
||||
|
@ -18,15 +18,12 @@ namespace QSB.Player.Events
|
||||
|
||||
private PlayerMessage CreateMessage() => new PlayerMessage
|
||||
{
|
||||
AboutId = LocalPlayerId
|
||||
AboutId = LocalPlayerId,
|
||||
OnlySendToServer = true
|
||||
};
|
||||
|
||||
public override void OnReceiveRemote(bool server, PlayerMessage message)
|
||||
{
|
||||
if (!server)
|
||||
{
|
||||
return;
|
||||
}
|
||||
DebugLog.DebugWrite($"Get state request from {message.FromId}");
|
||||
GlobalMessenger.FireEvent(EventNames.QSBServerSendPlayerStates);
|
||||
foreach (var item in QSBPlayerManager.GetSyncObjects<TransformSync.TransformSync>()
|
||||
@ -37,7 +34,6 @@ namespace QSB.Player.Events
|
||||
|
||||
foreach (var condition in QSBWorldSync.DialogueConditions)
|
||||
{
|
||||
DebugLog.DebugWrite($"SENDING STATE OF CONDITION {condition.Key}");
|
||||
GlobalMessenger<string, bool>.FireEvent(EventNames.DialogueCondition, condition.Key, condition.Value);
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,6 @@ namespace QSB.Tools
|
||||
|
||||
public static void Init(Transform camera)
|
||||
{
|
||||
DebugLog.DebugWrite($"TOOLS INIT ON {camera.name}");
|
||||
CreateStowTransforms(camera);
|
||||
|
||||
_playerToolsMaterial = GameObject.Find("Props_HEA_ProbeLauncher_ProbeCamera/ProbeLauncherChassis").GetComponent<MeshRenderer>().materials[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user