cleaning up warnings

This commit is contained in:
betalars 2023-07-11 10:57:19 +02:00
parent d20c0c4ae6
commit d81168fdbf
4 changed files with 3 additions and 11 deletions

View File

@ -17,14 +17,6 @@ var current_mode: int = Modes.FREEZE:
if not current_mode == new_mode: if not current_mode == new_mode:
current_mode = _update_scene(new_mode) current_mode = _update_scene(new_mode)
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func start(): func start():
$light_animation.play("light_up") $light_animation.play("light_up")
$AudioPlayer.play("intro") $AudioPlayer.play("intro")

View File

@ -3,7 +3,7 @@ extends Area3D
@onready var sprite: Sprite3D = $UiSprite @onready var sprite: Sprite3D = $UiSprite
@onready var viewport: SubViewport = $UiSprite/SubViewport @onready var viewport: SubViewport = $UiSprite/SubViewport
func _process(delta): func _process(_delta):
var camera = get_viewport().get_camera_3d() var camera = get_viewport().get_camera_3d()
# Look in the same direction as the camera # Look in the same direction as the camera
var look = camera.to_global(Vector3(0, 0, -100)) - camera.global_transform.origin var look = camera.to_global(Vector3(0, 0, -100)) - camera.global_transform.origin

View File

@ -59,7 +59,7 @@ func replace_with(postit: PostIt):
self.voice_line = postit.voice_line self.voice_line = postit.voice_line
self.sibling = postit.sibling self.sibling = postit.sibling
func _process(delta: float) -> void: func _process(_delta: float) -> void:
_move_post_it() _move_post_it()

View File

@ -65,7 +65,7 @@ signal ui_exited
func _ready(): func _ready():
_handle_jitter(0) _handle_jitter(0)
func _process(delta): func _process(_delta):
if focus_ray.get_collider() != null: if focus_ray.get_collider() != null:
emit_signal("ui_entered") emit_signal("ui_entered")