public void startHintConsumer() { AppConsumerTimestamp hintConsumer = new AppConsumerTimestamp(face_, keyChain_, false); HintHandler hh = new HintHandler(this); hintConsumer.consume(new Name(optPrefix).append(startTimeComponent), hh, hh, hh); }
public void expressHintInterest(Name.Component excludeComp = null) { Name hintName = new Name(prefix); hintName.append(this.getStartTimeComponent()).append(producerNameComponents.trackHint); Interest hintInterest = new Interest(hintName); if (excludeComp != null) { Exclude exclude = new Exclude(); exclude.appendAny(); // Debug.Log (" excluding hint num " + excludeComp.toNumber ()); exclude.appendComponent(excludeComp); hintInterest.setExclude(exclude); } hintInterest.setMustBeFresh(true); hintInterest.setInterestLifetimeMilliseconds(config.defaultHintLifetime); hintInterest.setChildSelector(1); HintHandler handler = new HintHandler(this); FaceSingleton.getFace().expressInterest(hintInterest, handler, handler); }
private void Awake() { if (!instance) { instance = this; } hintPanel.SetActive(false); confirmationPanel.SetActive(true); //gameObject.SetActive(false); }
public void expressHintInterest(Name.Component excludeComp = null) { Name hintName = new Name(prefix); hintName.append(this.getStartTimeComponent()).append(producerNameComponents.trackHint); Interest hintInterest = new Interest(hintName); if (excludeComp != null) { Exclude exclude = new Exclude(); exclude.appendAny(); exclude.appendComponent(excludeComp); } hintInterest.setMustBeFresh(true); hintInterest.setInterestLifetimeMilliseconds(config.defaultHintLifetime); HintHandler handler = new HintHandler(this); face.expressInterest(hintInterest, handler, handler); }
public virtual IDictionary <string, object> ToJson() { var options = new Dictionary <string, object>(Events); if (Filter.HasValue()) { options["filter"] = SanitizeSelector(Filter); } if (Disabled.HasValue()) { options["disabled"] = SanitizeSelector(Disabled); } if (Handler.HasValue()) { options["handler"] = SanitizeSelector(Handler); } if (ContainerSelector.HasValue()) { options["container"] = SanitizeSelector(ContainerSelector); } if (ConnectWith.HasValue()) { options["connectWith"] = SanitizeSelector(ConnectWith); } if (HoldToDrag) { options["holdToDrag"] = true; } if (Axis != SortableAxis.None) { options["axis"] = Enum.GetName(typeof(SortableAxis), Axis).ToLowerInvariant(); } if (Cursor.HasValue()) { options["cursor"] = SanitizeSelector(Cursor); } if (CursorOffset.Left != int.MinValue || CursorOffset.Top != int.MinValue) { var topLeft = new Dictionary <string, int>(); if (CursorOffset.Top != int.MinValue) { topLeft.Add("top", CursorOffset.Top); } if (CursorOffset.Left != int.MinValue) { topLeft.Add("left", CursorOffset.Left); } options.Add("cursorOffset", topLeft); } if (HintHandler.HasValue()) { options["hint"] = HintHandler; } else if (Hint.HasValue()) { options["hint"] = Hint; } if (PlaceholderHandler.HasValue()) { options["placeholder"] = PlaceholderHandler; } else if (Placeholder.HasValue()) { options["placeholder"] = Placeholder; } return(options); }
void Awake() { _isActivated = false; effects = GetComponentsInChildren<InteractiveEffect>(); activator = GetComponentInChildren<InteractiveActivator>(); hintHandler = GetComponent<HintHandler>(); matController = GetComponentInChildren<ObjectMaterialController>(); var physicsColliderTr = transform.Find("PhysicsCollider"); if(physicsColliderTr != null) physicsCollider = physicsColliderTr.GetComponent<Collider>(); }