17 lines
419 B
GDScript3
17 lines
419 B
GDScript3
|
class_name AreaSkillInstance
|
||
|
extends SkillInstance
|
||
|
|
||
|
var area: Area3D
|
||
|
|
||
|
func _enter_tree():
|
||
|
super._enter_tree()
|
||
|
area = get_node("Area")
|
||
|
|
||
|
func area_damage(before_time: float, active_time: float, after_time: float):
|
||
|
await get_tree().create_timer(before_time).timeout
|
||
|
area.monitoring = true
|
||
|
|
||
|
await get_tree().create_timer(active_time).timeout
|
||
|
area.monitoring = false
|
||
|
|
||
|
await get_tree().create_timer(after_time).timeout
|