Пример #1
0
        public static GenerateActionScript CreateInstance(LexiconIntent intent)
        {
            GenerateActionScript instance = CreateInstance <GenerateActionScript>();

            instance.intent = intent;
            return(instance);
        }
        public void CreateDefaultAction(LexiconIntent intent)
        {
            //Debug.Log("CreateAction");

            SyncQueue assetsQueue = ScriptableObject.CreateInstance <SyncQueue>();

            assetsQueue.Enqueue(GenerateActionPrefab.CreateInstance(intent));
            assetsQueue.Enqueue(GenerateIntentStrings.CreateInstance(intent));
            assetsQueue.Enqueue(GenerateActionScript.CreateInstance(intent));
            assetsQueue.Enqueue(ReloadSyncAction.CreateInstance());
            assetsQueue.Enqueue(UpdateActionPrefab.CreateInstance(intent));

            assetsQueue.Process();

            generateAssetsQueues.Add(assetsQueue);
        }