void BallCrossedLineEventListener(BallCrossedLineEvent e) { if (e.BallBoundType == BallBoundType.LeftGoalBound) { HomeTextComponent.text = HomeScore++.ToString(); } else if (e.BallBoundType == BallBoundType.RightGoalBound) { AwayTextComponent.text = AwayScore++.ToString(); } }
public void BallCrossedLineEventListener(BallCrossedLineEvent e) { //return ball to middle position _ball.transform.position = _refereeController.ReturnNewBallLocation(); }
public void OnBallCrossedLine(BallCrossedLineEvent e) { print("ball crosed the line from handler"); print(e.Position); print(e.BallBoundType); }