RB.Initialize
Method - Static
Parameters
Returns
bool
True if successful
DescriptionInitializes a RetroBlit game. The initialization process will set up RetroBlit internal states, and also call IRetroBlitGame.QueryHardware, followed by IRetroBlitGame.Initialize. You can call this method multiple times to switch between entirely separate RetroBlit games! Each call to RB.Initialize will clean up the existing game and load a new game. You could also reload the same game to start from a clean state. As part of initialization RetroBlit will call IRetroBlitGame.QueryHardware, followed by IRetroBlitGame.Initialize. Examplepublic class MyGameEntry : MonoBehaviour { private void Awake() { RB.Initialize(new MyGame()); } } |
See AlsoRB.IRetroBlitGameSee DocsFeatures - A Game From Scratch |