Scene Room Loader
This class allows the game to transition between different rooms and handles the loading and unloading of those rooms. Additionally, it synchronizes room transitions by calling the specified actions when these operations are completed.
method performs the loading of a room. This method takes the
Room
object, RoomInfo information, and anAction
to call when the installation is complete. First, the specified scene is loaded using theReflectiveSceneManager.LoadScene
method. When loading is complete, the specified onLoaded action is called. Additionally, the reference to the loaded scene is assigned to theroom.Scene
field.
method performs the removal of a room. This method removes the specified scene using the
ReflectiveSceneManager.UnLoadScene
method.
Last updated