ModelBase.cs 567 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace SC.XR.Unity.Module_InputSystem {
  6. public abstract class ModelBase : SCModuleMono {
  7. InputDevicePartUIBase _inputDevicePartUIBase;
  8. public InputDevicePartUIBase inputDevicePartUIBase {
  9. get {
  10. if(_inputDevicePartUIBase == null) {
  11. _inputDevicePartUIBase = GetComponentInParent<InputDevicePartUIBase>();
  12. }
  13. return _inputDevicePartUIBase;
  14. }
  15. }
  16. }
  17. }