Exemple #1
0
 /// <summary>
 /// Check if the GameRegistery has a DataContainer for the player
 /// </summary>
 /// <param name="container">output the DataContainer if it exists or null</param>
 /// <returns></returns>
 public static bool HasPlayerData(out DataContainer container)
 {
     container = Registery.m_player;
     return(container != null);
 }
Exemple #2
0
 /// <summary>
 /// Register the DataContainer of the player
 /// </summary>
 /// <param name="container"></param>
 public static void RegisterPlayer(DataContainer container)
 {
     Registery.m_player = container;
 }