having some trouble adding my scripts into an array so i can enable and disable them all at once
private MonoBehaviour [] scripts;
// Use this for initialization
void Start ()
{
scripts = GetComponent<MonoBehaviour> ();
if (Application.loadedLevel == 0) {
for (int i=0; i<scripts.Length; i++) {
}
}
}
getting this error
error CS0029: Cannot implicitly convert type UnityEngine.MonoBehaviour' to
UnityEngine.MonoBehaviour’