From ab8429e5439aa32cd58c864cf4099e20d0f64379 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sun, 14 Aug 2022 14:02:23 -0700 Subject: [PATCH] use name instead of gameObject.name --- QSB/Menus/FourChoicePopupMenu.cs | 2 +- QSB/Menus/ThreeChoicePopupMenu.cs | 2 +- QSB/Player/TransformSync/PlayerTransformSync.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/QSB/Menus/FourChoicePopupMenu.cs b/QSB/Menus/FourChoicePopupMenu.cs index 08831c9c..5a7544cd 100644 --- a/QSB/Menus/FourChoicePopupMenu.cs +++ b/QSB/Menus/FourChoicePopupMenu.cs @@ -225,7 +225,7 @@ public class FourChoicePopupMenu : Menu return; } - Debug.LogError("Cannot disable Menu unless it is on the top the MenuLayerManager stack. Current menu on top: " + MenuStackManager.SharedInstance.Peek().gameObject.name); + Debug.LogError("Cannot disable Menu unless it is on the top the MenuLayerManager stack. Current menu on top: " + MenuStackManager.SharedInstance.Peek().name); } public override void Activate() diff --git a/QSB/Menus/ThreeChoicePopupMenu.cs b/QSB/Menus/ThreeChoicePopupMenu.cs index b6bb40dd..ca56a8d1 100644 --- a/QSB/Menus/ThreeChoicePopupMenu.cs +++ b/QSB/Menus/ThreeChoicePopupMenu.cs @@ -203,7 +203,7 @@ public class ThreeChoicePopupMenu : Menu return; } - Debug.LogError("Cannot disable Menu unless it is on the top the MenuLayerManager stack. Current menu on top: " + MenuStackManager.SharedInstance.Peek().gameObject.name); + Debug.LogError("Cannot disable Menu unless it is on the top the MenuLayerManager stack. Current menu on top: " + MenuStackManager.SharedInstance.Peek().name); } public override void Activate() diff --git a/QSB/Player/TransformSync/PlayerTransformSync.cs b/QSB/Player/TransformSync/PlayerTransformSync.cs index 1e026b45..de1ca622 100644 --- a/QSB/Player/TransformSync/PlayerTransformSync.cs +++ b/QSB/Player/TransformSync/PlayerTransformSync.cs @@ -43,7 +43,7 @@ public class PlayerTransformSync : SectoredTransformSync if (QSBPlayerManager.PlayerList.Any(x => x.TransformSync == this)) { // this really shouldnt happen... - DebugLog.ToConsole($"Error - A PlayerInfo already exists with TransformSync {gameObject.name}", MessageType.Error); + DebugLog.ToConsole($"Error - A PlayerInfo already exists with TransformSync {name}", MessageType.Error); Destroy(this); return; }