Testing cutscene setup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class_name Entity extends CharacterBody3D
|
||||
const ConversationElement = preload("res://ConversationElement.gd")
|
||||
const ConversationElement = preload("res://cutscene/conversation/ConversationElement.gd")
|
||||
|
||||
enum MovementType {
|
||||
NONE,
|
||||
|
||||
@@ -17,8 +17,7 @@ func isInteractable() -> bool:
|
||||
return true
|
||||
|
||||
func _onConversationInteract(_other:Entity) -> void:
|
||||
print("Starting conversation with ", entity.name)
|
||||
pass
|
||||
CUTSCENE.setConversation(entity.conversation)
|
||||
|
||||
func onInteract(other:Entity) -> void:
|
||||
if entity.interactType == Entity.InteractType.NONE:
|
||||
@@ -29,4 +28,4 @@ func onInteract(other:Entity) -> void:
|
||||
_onConversationInteract(other)
|
||||
return
|
||||
_:
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
[ext_resource type="Script" uid="uid://xe6pcuq741xi" path="res://overworld/map/TestMap.gd" id="1_6ms5s"]
|
||||
[ext_resource type="PackedScene" uid="uid://cluuhtfjeodwb" path="res://overworld/map/TestMapBase.tscn" id="1_ox0si"]
|
||||
[ext_resource type="PackedScene" uid="uid://by4a0r2hp0w6s" path="res://overworld/entity/Entity.tscn" id="2_jmygs"]
|
||||
[ext_resource type="Script" uid="uid://b40rstjkpompc" path="res://ConversationElement.gd" id="3_p7git"]
|
||||
[ext_resource type="Script" uid="uid://b40rstjkpompc" path="res://cutscene/conversation/ConversationElement.gd" id="3_p7git"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_p7git"]
|
||||
script = ExtResource("3_p7git")
|
||||
|
||||
Reference in New Issue
Block a user