@@ -24,17 +24,17 @@ public static EntryPoint Instance
2424 }
2525
2626 /// <summary>
27- /// This be called either
28- /// - By the Menu script that will create it at the game launch (in a "real" game, there could be a Loading scene loaded
27+ /// This is called either by :
28+ /// - the Menu script that will create it at the game launch (in a full game, there could be a Loading scene loaded
2929 /// in first that will create it and display a progress bar possibly)
3030 /// - On the first call to Instance if it wasn't created (in editor only, see comment in that function)
3131 ///
3232 /// It take care of creating all globals data and initialize all system that need to be (like databases).
3333 /// </summary>
3434 public static void Create ( )
3535 {
36- //in this sample we use the main menu scene as initialisation. That mean going back to main menu can retrigger
37- //This initialization, so we check if we were already initialized. In a full project, this init would be called
36+ //in this sample we use the main menu scene as initialisation. That mean going back to main menu can trigger again
37+ //this initialization. So we check if we were already initialized. In a full project, this Create would be called
3838 //in a scene only run when the game launch, *before* main menu scene.
3939 if ( s_Instance != null )
4040 return ;
@@ -48,6 +48,7 @@ public static void Create()
4848
4949 DontDestroyOnLoad ( s_Instance ) ;
5050
51+ //This will init the Database and create the lookup dictionary matching an Item ScriptableObject and it's unique ID
5152 s_Instance . ItemDB . Init ( ) ;
5253
5354 s_Instance . m_PanelInstance = Instantiate ( s_Instance . PanelPrefab ) ;
0 commit comments