I have this script, and it gives me these errors. What is wrong?
Thanks!
Assets/MyClass.cs(9,37): error CS1519: Unexpected symbol `RandomValue’ in class, struct, or interface member declaration
Assets/none.cs(17,17): error CS0178: Invalid rank specifier: expected ,' or
]’
using UnityEngine;
using System.Collections;
public class MyClass : MonoBehaviour {
GameObject[] non;
int i = 0;
InvokeRepeating("Activator", 0.1f, 0.1f);
void Activator() {
i++;
if(i >= non.Length)
{
i = 0;
}
non[!=i].SetActive(false);
}
}