added enemy state machine with idle, stunned, and dead states
This commit is contained in:
12
scripts/enemy_stunned.gd
Normal file
12
scripts/enemy_stunned.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends EnemyState
|
||||
class_name EnemyStunned
|
||||
|
||||
@export var stunned_stars : Node
|
||||
|
||||
func _Enter():
|
||||
if stunned_stars:
|
||||
stunned_stars.visible = true
|
||||
|
||||
func _Exit():
|
||||
if stunned_stars:
|
||||
stunned_stars.visible = false
|
||||
Reference in New Issue
Block a user