Example #1
0
    private async void Init()
    {
        await PolymerModelAPI.LoadDataAsync();

        Debug.Log("加载PolymerModel完成");
        CoreAPI.SendCommand <MainConsoleModule, RegisterHoldHandlerCommand>(new RegisterHoldHandlerCommand());
        CoreAPI.SendCommand <MainConsoleModule, ShowMainConsoleCommand>(new ShowMainConsoleCommand());
        StartCoroutine(LaunchHelpDialog());
    }
Example #2
0
    private async void LoadData()
    {
        await PolymerModelAPI.LoadDataAsync();

        Debug.Log("加载数据完成");
        CoreAPI.SendCommand <PdbLoaderModule, LoadDefaultPdbFileCommand>(new LoadDefaultPdbFileCommand("6dce", () => {
            CoreAPI.SendCommand <ProteinDisplayModule, ShowDisplayViewCommand>(new ShowDisplayViewCommand());
            CoreAPI.SendCommand <ProteinDisplayModule, ShowProteinCommand>(new ShowProteinCommand());
        }));
    }