/// <summary> /// Check if ball is inside goal /// </summary> /// <param name="other">The other Collider involved in this collision.</param> void OnTriggerEnter(Collider other) { if (other.tag == "Ball") { _matchHandler.GoalScored(GoalTeam); } }
/// <summary> /// Check if ball is inside goal /// </summary> /// <param name="other">The other Collider involved in this collision.</param> void OnTriggerEnter(Collider other) { if (other.tag == "Ball") { _matchHandler.GoalScored(GoalTeam); } }