Esempio n. 1
0
    static void ImportActor(CommandTerminal.CommandArg[] args)
    {
        CreationLibrarySidebar inst = GameObject.FindObjectOfType <CreationLibrarySidebar>();

        if (inst == null)
        {
            GameBuilderConsoleCommands.Log($"Please open the custom actor library (via Creation Library) before using this command.");
            return;
        }
        string path = GameBuilderConsoleCommands.JoinTailToPath(args);

        if (path != null)
        {
            inst.ImportFromPath(path);
        }
    }
Esempio n. 2
0
    static void ImportCards(CommandTerminal.CommandArg[] args)
    {
        CardLibrary inst = GameObject.FindObjectOfType <CardLibrary>();

        if (inst == null)
        {
            GameBuilderConsoleCommands.Log($"Please open the card library (via Logic Tool) before using this command.");
            return;
        }
        string path = GameBuilderConsoleCommands.JoinTailToPath(args);

        if (path != null)
        {
            inst.ImportLocalByPath(new string[] { path });
        }
    }