Godot interaction system init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
extends Node3D
|
||||
|
||||
class_name Interactable
|
||||
|
||||
static func find(node: Node) -> Interactable:
|
||||
while node:
|
||||
if node is Interactable:
|
||||
return node
|
||||
node = node.get_parent()
|
||||
return null
|
||||
|
||||
func beginInteract(player, hitPosition: Vector3):
|
||||
pass
|
||||
|
||||
func updateInteract(player):
|
||||
pass
|
||||
|
||||
func endInteract(player):
|
||||
pass
|
||||
Reference in New Issue
Block a user