Почему Не работает код на респавн еды? Написал код чтобы когда змея приближалась к food(яблоку) она типа его съедала и заново появляласьusing System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UIElements; public class SnakeFOOd : MonoBehaviour { [SerializeField] BoxCollider2D SpawnArea; private void Start() { Randomposition(); } private void Randomposition() { Bounds bounds = this.SpawnArea.bounds; float x = Random.Range(bounds.min.x, bounds.max.x); float y = Random.Range(bounds.min.y, bounds.max.y); this.transform.position = new Vector3(Mathf.Round(x), Mathf.Round(y), 10f); } private void OnTriggerEnter2D(Collider2D other) { if (other.tag == "snake") { Randomposition(); } } }