예제 #1
0
파일: App.cs 프로젝트: WeiyaChen/Proteins
    private async void Init()
    {
        await PolymerModelAPI.LoadDataAsync();

        Debug.Log("加载PolymerModel完成");
        CoreAPI.SendCommand <MainConsoleModule, RegisterHoldHandlerCommand>(new RegisterHoldHandlerCommand());
        CoreAPI.SendCommand <MainConsoleModule, ShowMainConsoleCommand>(new ShowMainConsoleCommand());
        StartCoroutine(LaunchHelpDialog());
    }
예제 #2
0
파일: App.cs 프로젝트: WeiyaChen/Proteins-1
    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());
        }));
    }