1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-27 18:44:18 +00:00
algodist-steffo-nanogolf/utils/log.gd
2024-03-16 06:38:35 +01:00

9 lines
326 B
GDScript

extends Node
class_name Log
static func peer(this: Node, string: String):
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)