It's Cow Game! Version 2.04!
This commit is contained in:
commit
a9e1ed9ddd
3148 changed files with 95332 additions and 0 deletions
11
Interactions/Talking/Talkable.gd
Normal file
11
Interactions/Talking/Talkable.gd
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
extends Interaction
|
||||
|
||||
func _ready():
|
||||
add_action("Talk", talk)
|
||||
|
||||
func talk():
|
||||
var dialogue = get_parent().get_dialogue()
|
||||
|
||||
if dialogue != null:
|
||||
DialogueBoxManager.set_current_speaker(get_parent())
|
||||
DialogueBoxManager.start_dialogue(dialogue)
|
||||
7
Interactions/Talking/Talkable.tscn
Normal file
7
Interactions/Talking/Talkable.tscn
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://c31736waactb2"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c5ded8kcouyci" path="res://Interactions/Interactable/interaction.tscn" id="1_ugxae"]
|
||||
[ext_resource type="Script" path="res://Interactions/Talking/Talkable.gd" id="2_5c1kw"]
|
||||
|
||||
[node name="Talkable" instance=ExtResource("1_ugxae")]
|
||||
script = ExtResource("2_5c1kw")
|
||||
Loading…
Add table
Add a link
Reference in a new issue