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