1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-24 17:14:19 +00:00
algodist-steffo-nanogolf/utils/log.gd

10 lines
326 B
GDScript3
Raw Normal View History

2024-02-28 05:30:45 +00:00
extends Node
class_name Log
static func peer(this: Node, string: String):
2024-03-16 05:38:35 +00:00
if this.multiplayer.multiplayer_peer.get_connection_status() == MultiplayerPeer.CONNECTION_CONNECTED:
print("{", this.multiplayer.multiplayer_peer.get_unique_id(), "} [", str(this), "] ", string)
else:
print("{---} [", str(this), "] ", string)