Im using it to allow another script to access it, so it can change it. This is the error Im getting Assets/scripts/TimedSpawn.cs(11,14): error CS0501: `TimedSpawn.PVFS()’ must have a body because it is not marked abstract, extern, or partial
public GameObject spawnee;
public bool stopSpawning = false;
public float spawnTime;
public float spawnDelay;
// Use this for initialization
void Start () {
InvokeRepeating("SpawnObject", spawnTime, spawnDelay);
}
public void SpawnObject() {
Instantiate (spawnee, transform.position, transform.rotation);
if (stopSpawning) {
CancelInvoke ("SpawnObject")
public void PVFS()
}
Debug.Log(stopSpawning);
}
}
}