2022-11-29 18:18:57 -07:00
|
|
|
extends Node
|
|
|
|
|
|
|
|
onready var OnFootPhysics = get_node("../../../../../OnFootPhysics")
|
2022-12-11 17:02:57 -07:00
|
|
|
onready var Floor = get_node("../../../../../OnFootPhysics/Floor")
|
2022-12-11 18:07:05 -07:00
|
|
|
var has_played = false
|
2022-11-29 18:18:57 -07:00
|
|
|
|
|
|
|
func _process(_delta):
|
2022-12-11 18:07:05 -07:00
|
|
|
if OnFootPhysics.is_falling_terminally:
|
|
|
|
if has_played:
|
|
|
|
$FOVAnimation.play("fov")
|
|
|
|
has_played = true
|
2022-12-11 17:02:57 -07:00
|
|
|
return
|
2022-12-11 18:07:05 -07:00
|
|
|
has_played = false
|
|
|
|
$FOVAnimation.play("RESET")
|