Add method for quit war scene and back to main
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
extends Spatial
|
||||
|
||||
export (PackedScene) var main = load("res://scenes/main.tscn")
|
||||
|
||||
func _notification(what):
|
||||
# Back to main scene
|
||||
if what == MainLoop.NOTIFICATION_WM_GO_BACK_REQUEST:
|
||||
var scene = main.instance()
|
||||
call_deferred("add_child", scene)
|
||||
Reference in New Issue
Block a user