use name instead of gameObject.name

This commit is contained in:
JohnCorby 2022-08-14 14:02:23 -07:00
parent 6b011d8acd
commit ab8429e543
3 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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;
}