private void CheckBorders() { if (!GameAreaHelper.IsInGameplayArea(transform, _representation.bounds)) { Destroy(gameObject); } }
//Проверка нахождения объекта в области видимости камеры private void CheckBorders() { if (!GameAreaHelper.IsInGameplayArea(transform, _representation.bounds)) { Observer.Instance().ObectOutdated.Invoke(gameObject); } }
void LateUpdate() { GameAreaHelper.EncloseInBorders(transform, _representation.bounds); }