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("Линию перешли!"); Effects.SetActive(true); } } }