Esempio n. 1
0
        // Update is called once per frame
        void Update()
        {
            if (!readDone && CoreData.Instance.isReadCompleted)
            {
                readDone = true;
                MapDataHandler handler = new MapDataHandler();
                int            mapID   = CoreData.Instance.currentMapID;
                Debug.Log(mapID);
                EventCommandList events
                          = CoreData.Instance.mapDataArray[mapID].GetMapEvent(0).MapEventPageList[0].EventCommands;
                processor = new EventCommandProcessor(text, 0, events);
                return;
            }

            if (readDone)
            {
                processor.Run();
            }
        }
Esempio n. 2
0
 public WolfCommandReader(EventCommandProcessor processor)
 {
     this.processor = processor;
 }