Example #1
0
 public override void OnJudgement(DrawableHitObject judgedObject, Judgement judgement)
 {
     if (judgement.IsHit)
     {
         Vector2 screenPosition = judgedObject.ScreenSpaceDrawQuad.Centre;
         Remove(judgedObject);
         catcherArea.Add(judgedObject, screenPosition);
     }
 }
Example #2
0
 private void Fruit_OnJudgement(DrawableHitObject <CatchBaseHit, CatchJudgement> obj)
 {
     if (obj.Judgement.Result == HitResult.Hit)
     {
         Vector2 screenPosition = obj.ScreenSpaceDrawQuad.Centre;
         Remove(obj);
         catcherArea.Add(obj, screenPosition);
     }
 }
Example #3
0
        public override void OnJudgement(DrawableHitObject judgedObject, Judgement judgement)
        {
            if (judgement.IsHit)
            {
                Vector2 screenPosition = judgedObject.ScreenSpaceDrawQuad.Centre;

                // todo: don't do this
                (judgedObject.Parent as Container <DrawableHitObject>)?.Remove(judgedObject);
                (judgedObject.Parent as Container)?.Remove(judgedObject);

                catcherArea.Add(judgedObject, screenPosition);
            }
        }