SubjectManager.cs 301 B

12345678910111213
  1. using System;
  2. using UnityEngine;
  3. public class SubjectManager : MonoBehaviour
  4. {
  5. public string subjectIdentifier;
  6. private void OnEnable()
  7. {
  8. if (string.IsNullOrEmpty(subjectIdentifier))
  9. throw new Exception("You have to specify a subject for the experiment!");
  10. }
  11. }