/// <summary> /// Method that notifies that a ball has entered the dead zone /// </summary> /// <param name="b">The ball</param> public void BallEnteredDeadZone(Ball b) { b.Stop(); if (!_firstBallDetected) { _firstBallDetected = true; _ballSink.MoveTo(new Vector2(b.transform.position.x, b.transform.position.y + 0.2f)); _ballSink.Show(); _ballManager.HideText(); CallbackBall(b); } else { b.GoTo(_ballSink.transform.position, CallbackBall); } }
/// <summary> /// Method that notifies that a ball has entered the dead zone /// </summary> /// <param name="b">The ball</param> public void BallEnteredDeadZone(Ball b) { b.Stop(); if (!_firstBallDetected) { Tracker.Tracker.Instance.AddEvent(new Tracker.TrackerEvent(GameManager.instance.GetGuid().ToString(), (int)GameManager.EVENT_TYPES.SHOOT_BALL, Time.time)); _firstBallDetected = true; _ballSink.MoveTo(new Vector2(b.transform.position.x, b.transform.position.y + 0.2f)); _ballSink.Show(); _ballManager.HideText(); CallbackBall(b); } else { b.GoTo(_ballSink.transform.position, CallbackBall); } }