15 lines
208 B
GDScript3
15 lines
208 B
GDScript3
|
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()
|