player_answer.gd

Player's answer object for Dialogue system

var keys : Dictionary # keys from json file
var colors : Dictionary # colors for hovering text

func _on_mouse_entered() #when mouse hover text - it will be orange
func _on_mouse_exited() #when mouse not hover text - it will be gray
func answer_pressed() #play click sound and init new answer from NPC
func _on_gui_input(event) # handle mouse click input for current text node

Last updated