Александр Волков

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

Сама ошибка вот такая:NullReferenceException: Object reference not set to an instance of an objectGameContoller.MoveLevelTop (Level level) (at Assets/Scripts/GameContoller.cs:107)Level.LateUpdate () (at Assets/Scripts/Level.cs:48)

107 строчка - level.Setup(new Vector3(0, lastLevel.AnchoredPosition.y + lastLevel.Size.y), colors[CurrentLevel % colors.Count], CurrentLevel);

3

Assets\Scripts\GameContoller.cs(29,73): error CS1061: 'GameObject[]' does not contain a definition for 'ToList' and no accessible extension method 'ToList' accepting a first argument of type 'GameObject[]' could be found (are you missing a using directive or an assembly reference?) Полная ошибка.

Не могу понять в чем проблема, почему ему не нравиться ToList()?

3