Пример #1
0
 public virtual void Awake()
 {
     s3dDeviceMan = (s3dDeviceManager)gameObject.GetComponent(typeof(s3dDeviceManager));
     // if object has s3dDeviceManager.js, use that script's camera & touchpads
     if (s3dDeviceMan)
     {
         stereoParamsTouchpad = s3dDeviceMan.stereoParamsTouchpad;
         interaxialTouchpad   = s3dDeviceMan.interaxialTouchpad;
         zeroPrlxTouchpad     = s3dDeviceMan.zeroPrlxTouchpad;
         hitTouchpad          = s3dDeviceMan.hitTouchpad;
     }
 }
Пример #2
0
 public virtual void Start()
 {
     this.touchpad = (s3dTouchpad)this.gameObject.GetComponent(typeof(s3dTouchpad));
     this.StartCoroutine(this.waitABit());
 }
Пример #3
0
 public virtual void Start()
 {
     this.touchpad = (s3dTouchpad)this.gameObject.GetComponent(typeof(s3dTouchpad));
     this.toggleOnOff(this.startOn);
 }