void deactivateTurret(int i) { GameObject o = turrets[i]; TurretScript t = o.GetComponent <TurretScript>(); t.setActive(false); }