SerVB
06/30/2020, 8:08 PMNico
06/30/2020, 8:27 PMIván C.
06/30/2020, 8:30 PMchangeTo
method signature receives N number of objects as the first argument, that objects are added to the injector and then are injected if needed to the scene that you’re changing to.LoadingProxyScene
needs a NextScreen
instance to be created so when I call changeTo
I fulfill that dependency injecting an object of type NextScreen
here https://github.com/i-d-c-p/parasite-game/blob/d8fc04dbcd9cff6c0e59b905cea9a08e98ce697c/src/commonMain/kotlin/scenes/MainScene.kt#L55. I injected another object called instructions as well.Rishav Sharan
07/01/2020, 6:36 AMNico
07/01/2020, 6:45 AM