mirror of
https://github.com/Steffo99/nanogolf.git
synced 2024-11-27 18:44:18 +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)
|