public static bool ExecuteCinematicPatch_multiCourseSelect(ref ElectiveManager __instance) { currentElectiveIndex = 0; isElective = true; if (__instance.Id.IsNullOrEmpty()) { Heluo.Logger.Log("當前沒有選課, 無法執行當前選課的演出", Heluo.Logger.LogLevel.MESSAGE, "white", "ExecuteCinematic", "D:\\Work\\PathOfWuxia2018_Update\\Assets\\Scripts\\Table\\Manager\\ElectiveManager.cs", 43); return(false); } __instance.Number++; ElectiveManager electiveManager = __instance; if (__instance.Number > 3) { __instance.Number = 1; } currentElectiveNumber = __instance.Number; Heluo.Logger.LogError("__instance.Id:" + __instance.Id); selectElectiveString = __instance.Id.Split('_').ToList(); //如果中途关闭功能,则只执行所选的第一个课程 if (!multiCourseSelect.Value) { selectElectiveString.RemoveRange(1, selectElectiveString.Count - 1); } createExecuteCinematic(currentElectiveIndex++, currentElectiveNumber); return(false); }
public static void ExecuteCinematicPatch_multiCourseSelect(ref ElectiveManager __instance, Action _onCompleted) { //顺便把这个初始化一下,防止下半年选课出错 selectElectiveInfos = new List <ElectiveInfo>(); onCompletedFinal = _onCompleted; Heluo.Logger.LogError("onCompleted:" + onCompletedFinal); ElectiveManager electiveManager = __instance; UIElective uielective = Game.UI.Open <UIElective>(); //提交选课后调用的继续对话 uielective.SetContinuationTalk(delegate { List <string> electiveIdList = electiveManager.Id.Split('_').ToList(); createContinuationTalk(electiveIdList, 0); }); }