protected override void OnScriptStart() { base.OnScriptStart(); GameObject stylusSelectorObject = GameObject.Find("ZSStylusSelector"); if (stylusSelectorObject != null) { objectResolver = stylusSelectorObject.GetComponent <ZSStylusSelector> ().objectResolver; } }
protected override void OnScriptStart() { base.OnScriptStart(); GameObject stylusSelectorObject = GameObject.Find("ZSStylusSelector"); if (stylusSelectorObject != null) objectResolver = stylusSelectorObject.GetComponent<ZSStylusSelector>().objectResolver; }
void Update() { ZSStylusSelector stylusSelector = _stylusInput as ZSStylusSelector; if (_objectResolver == null && stylusSelector != null) _objectResolver = stylusSelector.objectResolver; bool isDragTool = stylusSelector == null || stylusSelector.activeStylus.Tool.GetType().IsSubclassOf(typeof(ZSDragTool)); if (!_isTransitioning && isDragTool && _stylusInput.GetButtonUp(_stylusInput.SelectButton)) { if (!String.IsNullOrEmpty(_clickScene) && _stylusInput.HoverObject == gameObject) StartCoroutine(ActivateSceneCoroutine(gameObject)); if (_collidingObject != null) StartTransition(_collidingObject); } if (_toolTip != null && _toolTip.active != (_collidingObject != null)) _toolTip.SetActiveRecursively(_collidingObject != null); }