Exemplo n.º 1
0
    private async Task RecruitAsync(RecruitSelectionData data)
    {
        var menu        = RecruitMenu.ShowDefault();
        var recruitTask = menu.DoMenuAsync(data, autoclose: false);
        await fade.FadeInRoutine("black");

        await recruitTask;
        await fade.FadeOutRoutine("black");

        await menu.CloseRoutine();
    }
Exemplo n.º 2
0
    private void Recruit(DynValue recruitKey)
    {
        var data = IndexDatabase.Instance().Recruits.GetData(recruitKey.String);

        RunRoutineFromLua(CoUtils.TaskRoutine(RecruitMenu.ShowDefault().DoMenuAsync(data)));
    }