15 lines
208 B
GDScript
15 lines
208 B
GDScript
extends Node
|
|
|
|
class_name PlayerManager
|
|
|
|
var players: Array = []
|
|
|
|
func add_player(player: Player):
|
|
players.append(player)
|
|
|
|
func get_players() -> Array:
|
|
return players
|
|
|
|
func clear_players():
|
|
players.clear()
|