//段誉 public static void DY() { Thread.Sleep(OneModelRun.GetRandomInt(1000, 5000)); Debug.WriteLine("段誉: This is 钟灵儿"); lock (FirstObj) { if (FirstEvent == 0) { FirstEvent++; Debug.WriteLine("天龙八部就此拉开序幕"); } } Thread.Sleep(OneModelRun.GetRandomInt(3000, 7000)); Debug.WriteLine("段誉: This is 木婉清"); Thread.Sleep(OneModelRun.GetRandomInt(3000, 7000)); Debug.WriteLine("段誉: This is 王语嫣"); Thread.Sleep(OneModelRun.GetRandomInt(3000, 7000)); Debug.WriteLine("段誉: This is 大理国王"); lock (FastObj) { if (FastEvent == 0) { FastEvent++; Debug.WriteLine("段誉完成任务了"); } } }
//乔峰 public static void QF() { Thread.Sleep(OneModelRun.GetRandomInt(1000, 5000)); Debug.WriteLine("乔峰: This is 丐帮帮主"); lock (FirstObj) { if (FirstEvent == 0) { FirstEvent++; Debug.WriteLine("天龙八部就此拉开序幕"); } } Thread.Sleep(OneModelRun.GetRandomInt(3000, 7000)); Debug.WriteLine("乔峰: This is 契丹人"); Thread.Sleep(OneModelRun.GetRandomInt(3000, 7000)); Debug.WriteLine("乔峰: This is 西夏驸马"); Thread.Sleep(OneModelRun.GetRandomInt(3000, 7000)); Debug.WriteLine("乔峰: This is 挂印离开"); lock (FastObj) { if (FastEvent == 0) { FastEvent++; Debug.WriteLine("乔峰完成任务了"); } } }
//虚竹 public static void XZ() { Thread.Sleep(OneModelRun.GetRandomInt(1000, 5000)); Debug.WriteLine("虚竹: This is 小和尚"); lock (FirstObj) { if (FirstEvent == 0) { FirstEvent++; Debug.WriteLine("天龙八部就此拉开序幕"); } } Thread.Sleep(OneModelRun.GetRandomInt(3000, 7000)); Debug.WriteLine("虚竹: This is 逍遥掌门"); Thread.Sleep(OneModelRun.GetRandomInt(3000, 7000)); Debug.WriteLine("虚竹: This is 岭路宫掌门"); Thread.Sleep(OneModelRun.GetRandomInt(3000, 7000)); Debug.WriteLine("虚竹: This is 西夏驸马"); lock (FastObj) { if (FastEvent == 0) { FastEvent++; Debug.WriteLine("虚竹完成任务了"); } } }