SubjectManager.cs 357 B

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