Первый коммит
This commit is contained in:
23
Assets/Scripts/Car/Finish.cs
Normal file
23
Assets/Scripts/Car/Finish.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
|
||||
class Finish : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameObject Effects;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Effects.SetActive(false);
|
||||
}
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.gameObject.tag == "Player 1" || other.gameObject.tag == "Player 2")
|
||||
{
|
||||
Debug.Log("<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!");
|
||||
Effects.SetActive(true);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user