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