mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 12:16:14 +01:00
16 lines
433 B
GDScript
16 lines
433 B
GDScript
extends Node3D
|
|
|
|
|
|
func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
|
|
self.scale = Vector3(1.5,1.5,1.5)
|
|
if event is InputEventMouseButton:
|
|
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true:
|
|
print("Credits/Spielbeschreibung")
|
|
#TODO: Richtige Szene Einfügen
|
|
get_tree().change_scene_to_file("res://Nodes/game.tscn")
|
|
|
|
|
|
|
|
func _on_area_3d_mouse_exited():
|
|
self.scale = Vector3(1,1,1)
|