10 lines
177 B
GDScript
10 lines
177 B
GDScript
class_name Player
|
|
extends Character
|
|
|
|
signal name_changed(new_name: String)
|
|
|
|
var id: String
|
|
|
|
func set_player_name(new_name: String):
|
|
name = new_name
|
|
name_changed.emit(new_name) |