IndexOutOfRangeException: Index was outside the bounds of the array.
Enemy1.Start () (at Assets/Scripts/Enemy1.cs:16)
Синтаксис:
Используется csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemy1 : MonoBehaviour
{
public GameController Controller;
public GameObject[] Spaw ;
// Start is called before the first frame update
void Start()
{
Spaw[4].gameObject.GetComponent<Spawm>().quantityNOW ++;
}
using System.Collections.Generic;
using UnityEngine;
public class Enemy1 : MonoBehaviour
{
public GameController Controller;
public GameObject[] Spaw ;
// Start is called before the first frame update
void Start()
{
Spaw[4].gameObject.GetComponent<Spawm>().quantityNOW ++;
}