21 lines
480 B
GDScript
21 lines
480 B
GDScript
extends Node
|
|
|
|
@export var environment: Environment
|
|
@export var camera_attributes: CameraAttributesPractical
|
|
|
|
var camera: Camera3D
|
|
var player: Player
|
|
var viewport: Viewport
|
|
var window: Window
|
|
var players: PlayerManager
|
|
var account_id: String
|
|
var auth_token: String
|
|
var interacting_with_ui: bool
|
|
var instance_id: int
|
|
var username: String
|
|
|
|
func _enter_tree():
|
|
instance_id = OS.get_process_id() % 4
|
|
username = "user%d" % instance_id
|
|
viewport = get_viewport()
|
|
window = get_window() |