Beispiel #1
0
    public void GetXMLEventFiles()
    {
        evCon = SM4EventListsContainer.instance;
        string pathEvents;

        pathEvents = Path.Combine(Application.streamingAssetsPath, "Events");
        string[] eventDirectories = Directory.GetDirectories(pathEvents);
        foreach (var eventDirectory in eventDirectories)
        {
            LoadEventsIntoEventList(Path.Combine(eventDirectory, "Events.xml"));
        }
    }
Beispiel #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != null)
     {
         ErrorLogger.LogErrorInFile("Error in " + this.name);
         Destroy(gameObject);
     }
 }