LoadMod() public method

public LoadMod ( string Name ) : bool
Name string
return bool
示例#1
0
    void Awake()
    {
        // Get all files from the specified mods directory
        string[] modPaths = Directory.GetFiles(modFolder);

        // Try to load all valid mods
        foreach (string mod in modPaths)
        {
            ModManager.LoadMod(mod);
        }

        // Set the scene containing the default chunk
        if (terrainObject != null)
        {
            ChunkManager.Initialize(new InfiniTerrain(terrainObject));
        }

        // Initialize the interface manager with the specified skin
        InterfaceManager.Initialize(defaultSkin);

        // Start generating engine ticks
        StartCoroutine(GenerateEngineTick());
    }