Exemple #1
0
 /// <summary>
 /// Called from GUI
 /// </summary>
 public void ReloadMods()
 {
     PeopleModData = XMLSerie.ReadXMLPeopleModData();
     if (PeopleModData != null)
     {
         Text.text = "MOD ok";
     }
     else
     {
         Text.text = "MOD error";
     }
     _shown = Time.time;
 }
Exemple #2
0
    private static void ReloadModStatic()
    {
        if (PeopleModData == null)
        {
            var modController = FindObjectOfType <ModController>();
            PeopleModData = XMLSerie.ReadXMLPeopleModData();

            if (PeopleModData != null)
            {
                if (modController != null)
                {
                    modController.Text.text = "MOD loaded";
                }
            }
            else
            {
                if (modController != null)
                {
                    modController.Text.text = "no MOD";
                }
            }
        }
    }