Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Why can't I use public void PVFS

$
0
0
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); } } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>