**I’m trying to make it so that when the player has destroyed 6 objects, the 6 objects will be noted as “true”. This doesnt seem to be working and I can’t figure out why. Please help. **
var hasDalek : boolean = false;
var hasMeteor : boolean = false;
var hasWire : boolean = false;
var hasCasing : boolean = false;
var hasDalekLight : boolean = false;
var hasPlans : boolean = false;
var Dalekgun : GameObject;
var Meteor : GameObject;
var Wire : GameObject;
var Casing : GameObject;
var DalekLight : GameObject;
var Plans : GameObject;
function Start () {
if (hasDalek)
{
if (Dalekgun == null);
(hasDalek) = true;
}
if (hasMeteor)
{
if (Meteor == null);
hasMeteor = true;
}
if (hasWire)
{
if (Wire == null);
hasWire = true;
}
if (hasCasing)
{
if (Casing == null);
hasCasing = true;
}
if (hasDalekLight)
{
if (DalekLight == null);
hasDalekLight = true;
}
if (hasPlans)
{
if (Plans == null);
hasPlans = true;
}
}