My trigger cube turns off all info cards and then turns one back on, works fine when I play from editor, fails to work (throws no bug, just doesn't work) in my build- any ideas why?
the script is as follows;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class triggerCardFromProduct: MonoBehaviour{
public GameObject theInfoCard;
private GameObject[] turnOffCards;
void OnTriggerEnter(Collider other){
turnOffCards = GameObject.FindGameObjectsWithTag ("infoCard");
{
for (int i=0;i
↧