//キーが離された時 public override void OnKeyUp(JudgementType judgementType) { //TODO 判定がBad以内の時 if (judgementType != JudgementType.Miss) { //ヒット処理 EvaluationManager.OnHit(judgementType); } //判定がmissのとき else { //ミス処理 EvaluationManager.OnMiss(); } //コンソールに判定を表示 Debug.Log(judgementType); // 効果音再生 AudioSource.PlayClipAtPoint(clipHit, transform.position); // 処理中フラグを解除 isProcessed = false; //リストから削除 PlayerControllers.ExistingNoteControllers.Remove( GetComponent <NoteControllerBase>() ); //gameObjectも削除 Destroy(gameObject); }
//ノーツを処理した際に呼び出される public static void OnHit(JudgementType judgementType) { //コンボ数をインクリメント Combo++; //1ノーツあたりのPerfect時のスコア増加量 //(スコア理論値) + (コンボ数理論値) var addValue = TheoreticalScore / TheoreticalCombo; // 判定に応じてスコアを増やす Score += addValue * ScoreAddRate[judgementType]; //対応するJudgementCountをインクリメント JudgmentCounts[judgementType]++; }
// ノーツを処理した際に呼び出される public static void OnHit(JudgementType judgementType) { //コンボ数をインクリメント Combo++; //1ノーツあたりのperfect時のスコア増加量 //(スコア理論値)/(コンボ数理論値) var addValue = TheoreticalScore / TheoreticalCombo; //判定に応じてスコアを増やす Score += addValue * ScoreAddRates[judgementType]; //TODO壊れる 対応するjudgementCountをインクリメンt JudgementCounts[judgementType]++; }
// キーが押された時 public override void OnKeyDown(JudgementType judgementType) { // デバッグ用にコンソールに判定を出力 Debug.Log(judgementType); // 判定がMissでないとき(BAD以内のとき) if (judgementType != JudgementType.Miss) { // 未処理ノーツ一覧から削除 PlayerController.ExistingNoteControllers.Remove( GetComponent <NoteControllerBase>() ); // GameObject自体も削除 Destroy(gameObject); } }
// キーが押された時 public override void OnKeyDown(JudgementType judgementType) { // コンソールに判定を表示 Debug.Log(judgementType); // 判定がMissでないとき(BAD以内のとき) if (judgementType != JudgementType.Miss) { // ヒット処理 EvaluationManager.OnHit(judgementType); // 効果音再生 AudioSource.PlayClipAtPoint(clipHit, transform.position); // 処理中フラグを付ける isProcessed = true; // 通過オブジェクトを非表示にする Begin.material = Alpha; } }
//キーが押された時 public override void OnKeyDown(JudgementType judgementType) { //デバッグ用にコンソールに判定を出力 Debug.Log(judgementType); //判定がMissでないとき(BAD以内の時) if (judgementType != JudgementType.Miss) { //効果音再生 AudioSource.PlayClipAtPoint(ClipHit, transform.position); // 未処理ノーツ一覧から削除 PlayerController.ExistingNoteControllers.Remove( GetComponent <NoteControllerBase>() ); // GameObject自体も削除 Destroy(gameObject); } }
public async Task <ActionResult <Judgement[]> > GetAll( [FromRoute] int cid, [FromQuery] int[] ids = null, [FromQuery] string result = null, [FromQuery] int?submission_id = null) { var r2 = JudgementType.For(result); var cond = Expr .Of <Judging>(j => j.StartTime != null && j.s.ContestId == cid) .CombineIf(ids != null && ids.Length > 0, j => ids.Contains(j.Id)) .CombineIf(submission_id.HasValue, j => j.SubmissionId == submission_id) .CombineIf(r2 != Verdict.Unknown, j => j.Status == r2); var js = await Context.ListJudgingsAsync(cond, 100000); var contestTime = Contest.StartTime ?? DateTimeOffset.Now; return(js.Select(judging => new Judgement(judging, contestTime)).ToArray()); }
public LightOnFire(JudgementType which) { Judged = which; switch (which) { case JudgementType.Team: id = "Ignite Team"; break; case JudgementType.Global: id = "Ignite All"; break; case JudgementType.TeamMember: id = "Ignite One"; break; default: throw new NotImplementedException("I can't start fires if you don't tell me who to burn"); } }
// キーが押された時 public override void OnKeyDown(JudgementType judgementType) { // コンソールに判定を表示 Debug.Log(judgementType); // 判定がMissでないとき(BAD以内のとき) if (judgementType != JudgementType.Miss) { // ヒット処理 EvaluationManager.OnHit(judgementType); // 効果音再生 AudioSource.PlayClipAtPoint(clipHit, transform.position); // 処理中フラグを付ける isProcessed = true; // 色を変更 objBegin.GetComponent <SpriteRenderer>().color = processedColorEdges; objEnd.GetComponent <SpriteRenderer>().color = processedColorEdges; objTrail.GetComponent <SpriteRenderer>().color = processedColorTrail; } }
// キーが押された時 public override void OnKeyDown(JudgementType judgementType) { // デバッグ用にコンソールに判定を出力 Debug.Log(judgementType); // 判定がMissでないとき(BAD以内のとき) if (judgementType != JudgementType.Miss) { // ヒット処理(スコア・コンボ数などを変更) EvaluationManager.OnHit(judgementType); // 効果音再生 AudioSource.PlayClipAtPoint(clipHit, transform.position); // 未処理ノーツ一覧から削除 PlayerController.ExistingNoteControllers.Remove( GetComponent <NoteControllerBase>() ); // GameObject自体も削除 Destroy(gameObject); } }
public bool isProcessed = false; // ロングノーツ用処理中フラグ public virtual void OnKeyDown(JudgementType judgementType) { }
public virtual void OnKeyUp(JudgementType judgementType) { }
public Judgement(JudgementType type) { Type = type; }