// 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(); } }
public WolfCommandReader(EventCommandProcessor processor) { this.processor = processor; }