Hi I am new to C# but I have checked and double checked and for some reason it says unexpected symbol void. (void Start)
` using UnityEngine;
using System.Collections;
public class NewBehaviourScript2 : MonoBehaviour {
int h = 1;
void Start () {
while(!h = 0)
{
Invoke ("nothing", 2);
if (Input.GetKey (KeyCode.Space))
{
renderer.enabled = !renderer.enabled;
Invoke ("nothing", 2);
}
}
}
// Update is called once per frame
void Update () {
}
}`
Btw I also need help on having delays. Will what I did above work, or is there another command for adding delays?