using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class StartFinishScript : MonoBehaviour
{
	void OnTriggerEnter (Collider col)
    {
        if (SceneManager.GetActiveScene().name.Contains("Lobby"))
            return;

		RacerCore _racerCore = col.GetComponent<RacerCore> ();

		if (_racerCore)
            if (_racerCore.IsLocal)
                _racerCore.CheckLap();
	}
}
