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

cs1061 fix me error please

$
0
0
using UnityEngine; using System.Collections; public class DataImplementer : MonoBehaviour { public int carSelected; public GameObject CadillacXTS; public GameObject ChevyVan; public GameObject L200; void Start () { 16 carSelected = GameObject.Find("DataHandler").GetComponent("DataHandler").carSelected; ERROR CS1061(16, 76) UNITYENGINE.COMPONENT DOES NOT CONTAIN A DEFINITON for carSelected and no extension method carSelected of type UnityEngine.Component. HELP ME CHANGE NOT CARSELECRED OR OTHER TO THE CORRECT ANSWER PLEASEEE. if (carSelected == 1) { CadillacXTS.SetActive (true); ChevyVan.SetActive (false); L200.SetActive (false); } else if (carSelected == 2) { CadillacXTS.SetActive (false); ChevyVan.SetActive (true); L200.SetActive (false); } else if (carSelected == 3) { CadillacXTS.SetActive (false); ChevyVan.SetActive (false); L200.SetActive (true); } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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