9 lines
162 B
GDScript3
9 lines
162 B
GDScript3
|
extends Node2D
|
||
|
|
||
|
const WORLD = preload("res://Scenes/World/World.gd")
|
||
|
|
||
|
func _ready():
|
||
|
var parent = get_parent()
|
||
|
if parent is WORLD:
|
||
|
parent.currentLevel = self
|