mirror of
https://github.com/Steffo99/nanogolf.git
synced 2024-11-24 00:54:19 +00:00
9 lines
326 B
GDScript
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)
|