Дмитрий Потап

+6
с 2022
0 подписчиков
38 подписок

NullReferenceException: Object reference not set to an instance of an object
ChangeRoom.OnTriggerEnter2D (UnityEngine.Collider2D other) (at Assets/ChangeRoom.cs:21) так выглядит ошибка

код:

1

Assets\RoomSpawner.cs(35,58): error CS1061: 'GameObject[]' does not contain a definition for 'Lenght' and no accessible extension method 'Lenght' accepting a first argument of type 'GameObject[]' could be found (are you missing a using directive or an assembly reference?)это ошибка полностью

помогите пожалуйста разобраться.

5