Seems to give me this error when I moves this script to a different object. Don’t know why this happened or how to fix it. Someone tell me what it means? Sorry and yes I copied and pasted this code before, I am planning on learning more about arrays in the future.
private var yball : GameObject[];
function OnCollisionEnter2D (colInfo : Collision2D) {
if (colInfo.collider.tag == "yellow"&& !paused) {
Debug.Log("HITIT");
yball = GameObject.FindGameObjectsWithTag ("yellow");
for( var i = 0 ; i < yball.length ; i ++)
yellowBallCount += 1;
yball*.active = false;*
-
}*
-
}*