/// <summary> /// Change current scene by type. /// </summary> public void ChangeScene <T>(Dictionary <string, object>?args = null) where T : Scene { ChangeScene(New <T> .Instance(), args); }
/// <summary> /// Change current scene by type. /// </summary> public void ChangeScene(Type t, Dictionary <string, object>?args = null) { ChangeScene(New <Scene> .InstanceOf(t)(), args); }
/// <summary> /// Register a scene by name. /// </summary> public void RegisterScene(Type t, string name) { dic[name] = New <Scene> .InstanceOf(t); }