void Awake()
 {
     if (!loaded)
     {
         playerDataColleciton = PlayerDataContainer.Load(Path.Combine(Application.dataPath, "PlayerData.xml"));
         loaded = true;
     }
     theUIText = GameObject.Find("Money").GetComponent <Text>();
 }
Esempio n. 2
0
 public void TurnOnMultiplayer()
 {
     //Load the XML
     playerDataCollection = CurrentPlayer.Instance.GetPlayerDataCollection;
     if (playerDataCollection.playerDatas.Count > 0)
     {
         //Display the new create scene.
     }
     else
     {
         //Display the scene that allows the player to select which player he is, or create a new player.
     }
 }