working on rat
This commit is contained in:
12
scripts/rat_walk.gd
Normal file
12
scripts/rat_walk.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends CharacterState
|
||||
class_name RatWalk
|
||||
|
||||
|
||||
func Update(delta):
|
||||
get_new_waypoint()
|
||||
move_to_nav_point(delta)
|
||||
|
||||
func get_new_waypoint():
|
||||
if character.end_hole:
|
||||
move_target = character.end_hole.global_position
|
||||
character.nav_agent.set_target_position(move_target)
|
||||
Reference in New Issue
Block a user