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

Please Help

$
0
0
Very confused , I do not understand that for an error Targetting.cs(3,14):error CS1041: Identifier expected. Please tell me , where did I go wrong ? using UnityEngine; using System.Collections; using System.Collections.Generic; public class Targetting : MonoBehaviour { public List targets; // Use this for initialization void Start () { targets = new List(); AddAllEnemies(); } public void AddAllEnemies() { GameObject[] go = GameObject.FindGameObjectsWithTag("Enemy"); foreach(GameObject enemy in go) AddTarget(enemy.transform); } public void AddTarget(Transform enemy) { targets.Add(enemy); } // Update is called once per frame void Update () { } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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