Beispiel #1
0
    public void Start()
    {
        story = GetComponent <StorySelector>();
        audio = GameObject.FindGameObjectWithTag("Audio").GetComponent <SoundMixer>();


        console = GameObject.FindGameObjectWithTag("DisplayText");
        myLog   = console.GetComponent <PlayerLog> ();
    }
Beispiel #2
0
 private void LoadStoriesData()
 {
     try
     {
         ModConfigs _modConfigs = _xmlParser.ParseModConfigs();
         ModConfigs.GlobalModConfigs.Copy(_modConfigs);
         _ticker = new Ticker();
         XmlParser      parser = new XmlParser();
         List <Stories> list   = parser.ParseStoriesInPath();
         InformationManager.DisplayMessage(new InformationMessage("Load Stories Count:" + list.Count));
         _selector = new StorySelector();
         _selector.Insert(list);
     }
     catch (Exception e)
     {
         InformationManager.DisplayMessage(new InformationMessage("Load Stories Error," + e));
     }
 }