Files
2025-05-29 22:31:40 +03:00

15 lines
336 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BoatFinishLine : MonoBehaviour
{
private void OnTriggerEnter(Collider c)
{
var gameController = c.GetComponentInParent<BoatGameController>();
if (gameController != null)
gameController.Finish();
}
}