public void HandleRequest(LeaveContext context) { if (CanHandle(context)) { Handle(context); return; } NextManager?.HandleRequest(context); }
public override void HandleRequest(LeaveContext context) { if (context.Request.LeaveDays <= 1) { context.Response = new LeaveResponse { Approver = "TL:" + Name, IsAgreed = true }; return; } NextManager?.HandleRequest(context); }
public void Restart() { statAttack = 0; statLine = 0; statPiece = 0; statScore = 0; gameState = State.Playing; //初始化40行10列的盘面 field.ClearAll(); hold = 0; isHeld = false; wasB2B = false; combo = 0; next = new NextManager(false); NewMino(next.Dequeue()); }