fix barista model material import settings, uncapture mouse on escape
This commit is contained in:
@@ -44,7 +44,10 @@ func _physics_process(delta):
|
||||
velocity.y -= gravity * delta
|
||||
|
||||
if Input.is_action_just_pressed("ui_cancel"):
|
||||
get_tree().quit()
|
||||
if Input.mouse_mode == Input.MOUSE_MODE_CAPTURED:
|
||||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||
else:
|
||||
get_tree().quit()
|
||||
|
||||
if !locked:
|
||||
if Input.is_action_just_pressed("crouch"):
|
||||
@@ -75,7 +78,10 @@ func _physics_process(delta):
|
||||
handle_aim()
|
||||
aiming = true
|
||||
elif Input.is_action_just_pressed("use"):
|
||||
handle_use()
|
||||
if Input.mouse_mode == Input.MOUSE_MODE_VISIBLE:
|
||||
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||
else:
|
||||
handle_use()
|
||||
|
||||
if Input.is_action_just_pressed("use_alt"):
|
||||
handle_use_alt()
|
||||
|
||||
Reference in New Issue
Block a user