public VirtualProfiler() { _controller = Object.FindObjectOfType(typeof(SubjectController)) as SubjectController; if (_controller == null) { throw new ArgumentException("Could not find the subject controller. Please attach the 'SubjectController' script to a Unity object."); } }
public VirtualProfiler() { _controller = Object.FindObjectOfType(typeof(SubjectController)) as SubjectController; if (_controller == null) throw new ArgumentException("Could not find the subject controller. Please attach the 'SubjectController' script to a Unity object."); }