Removed some warnings.
parent
ba088a1e4b
commit
f5c1d33327
|
@ -1,8 +1,5 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
signal conversation_started
|
|
||||||
signal conversation_stopped
|
|
||||||
|
|
||||||
var is_conversation_active:bool = false
|
var is_conversation_active:bool = false
|
||||||
var player:Player = null
|
var player:Player = null
|
||||||
|
|
||||||
|
@ -12,15 +9,12 @@ func _ready():
|
||||||
|
|
||||||
func start_conversation(resource: DialogueResource) -> void:
|
func start_conversation(resource: DialogueResource) -> void:
|
||||||
is_conversation_active = true
|
is_conversation_active = true
|
||||||
print ("Conversation started")
|
|
||||||
emit_signal("conversation_started")
|
|
||||||
if player:
|
if player:
|
||||||
player.is_input_blocked = true
|
player.is_input_blocked = true
|
||||||
|
|
||||||
func stop_conversation(resource: DialogueResource) -> void:
|
func stop_conversation(resource: DialogueResource) -> void:
|
||||||
is_conversation_active = false
|
is_conversation_active = false
|
||||||
print ("Conversation stopped")
|
|
||||||
emit_signal("conversation_stopped")
|
|
||||||
|
|
||||||
if player:
|
if player:
|
||||||
player.is_input_blocked = false
|
player.is_input_blocked = false
|
||||||
|
|
Loading…
Reference in New Issue