SubjectManager.cs 341 B

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