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; } }
public virtual void Start() { this.touchpad = (s3dTouchpad)this.gameObject.GetComponent(typeof(s3dTouchpad)); this.StartCoroutine(this.waitABit()); }
public virtual void Start() { this.touchpad = (s3dTouchpad)this.gameObject.GetComponent(typeof(s3dTouchpad)); this.toggleOnOff(this.startOn); }