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

l have been having this on my script error CS8025: Parsing, l don't what to do

$
0
0
using UnityEngine; using System.Collections; using UnityEngine.UI; public class Differentball : MonoBehaviour { public GameObject[]spawnPoints; public GameObject Enemy; public Text countText; private int count; // Use this for initialization void Start () { spawnPoints = GameObject.FindGameObjectsWithTag("spawn"); count = 0; SetCountText (); } // Update is called once per frame void Update () { GameObject[] enemies; enemies = GameObject.FindGameObjectsWithTag ("Enemy"); if (enemies.Length >= 3) { print ("too many enemies on the dance floor"); } else { InvokeRepeating ("spawnEnemies", 1, 4f); count = count + 1; SetCountText (); } } void SetCountText () { countText.text = " count ; " + count.ToString (); } } void spawnEnemies () int SpawnPos = Random.Range (0, (spawnPoints.Length - 0)); Instantiate (Enemy, spawnPoints [SpawnPos].transform.position, transform.rotation); CancelInvoke (); } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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