beta-1.0
This commit is contained in:
@@ -17,6 +17,12 @@ func ChangeDirectionUsingMovementVector(movement_vector: Vector2) -> void:
|
||||
DirectionChanged.emit()
|
||||
|
||||
|
||||
func SetDirectionManually(direction: Enums.Directions) -> void:
|
||||
if current_direction != direction:
|
||||
current_direction = direction
|
||||
DirectionChanged.emit()
|
||||
|
||||
|
||||
# Private Methods
|
||||
func _get_direction_from_mov_vec(mov_vec: Vector2) -> Enums.Directions:
|
||||
if mov_vec.x < 0: return Enums.Directions.LEFT
|
||||
|
||||
Reference in New Issue
Block a user