void Awake() { if (instance != null) { Destroy(this.gameObject); } else { instance = this; } }
void Awake() { if (instance != null) { Destroy(this.gameObject); } else { instance = this; distractions = FindObjectsOfType(typeof(Distraction)) as Distraction[]; subject = FindObjectOfType <SubjectDataHolder>(); salienceController = FindObjectOfType <SalienceController>(); } }