9 lines
147 B
GDScript3
9 lines
147 B
GDScript3
|
extends NPCUnit
|
||
|
|
||
|
|
||
|
func before_tick():
|
||
|
if scene.rng.randf() < 0.5:
|
||
|
facing = Constants.Direction.RIGHT
|
||
|
else:
|
||
|
facing = Constants.Direction.LEFT
|