예제 #1
0
    // Makes a list of all the currently existing XML files and Actor list, and loads in the first XML-file.
    private void ReloadData()
    {
        LoadXmlFileList();
        if (allXmlFileNames.Count != 0)
        {
            LoadXmlFileData(allXmlFileNames [0]);
            selectedSceneName = allXmlFileNames [0];
        }

        Actors[] actors = ObjectLoader.GetAtPath <Actors> (actorDirectory);
        availibleActorsList.AddRange(actors);
        foreach (Actors a in availibleActorsList)
        {
            availibleActorNames.Add(a.actorName);
        }
    }
예제 #2
0
 public void LoadActors()
 {
     Actors[] actors = ObjectLoader.GetAtPath <Actors> ("Resources/DialogActors");
     allActors.AddRange(actors);
 }