выдаёт ошибку почему?

Выдает такую ошибку

Assets\Fctivator.cs(16,14): error CS1061: 'Collider' does not contain a definition for 'ComareTag' and no accessible extension method 'ComareTag' accepting a first argument of type 'Collider' could be found (are you missing a using directive or an assembly reference?)

введите сюда описание изображения


Ответы (1 шт):

Автор решения: Алексей Шиманский

Надо писать не

other.CompareTag

а

other.gameObject.CompareTag
      ^^^^^^^^^^
→ Ссылка