hillclimb2d/Assets/Scripts/FinishLine.cs
2025-03-16 20:03:45 +05:30

18 lines
383 B
C#

using UnityEngine;
public class FinishLine : MonoBehaviour
{
public GameObject Finishpanel;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
private void OnTriggerEnter2D(Collider2D other)
{
Finishpanel.SetActive(true);
}
}