I get this error every time I use the Find or FindObjectsOfType. I just can’t figure this out. Is there something missing?
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class physicsScript : MonoBehaviour {
GameObject[] objectList;
int i;
void Start ()
{
}
void Update ()
{
//objectList = GameObject.FindObjectsOfType<physicsScript>();///
//objectList = new GameObject.FindObjectsOfType<physicsScript>() as GameObject[];
objectList = new GameObject.Find("GameObject") as GameObject[];
}
Didn't notice...thx
– Nk.Andrei