void Start() { hands = GetComponent <LeapHands>(); debug = GetComponent <LiveDebug>(); knobs = GameObject.Find("interactables").GetComponent <Knobs>(); letters = GameObject.Find("letters").GetComponent <Letters>(); debug.Log("knobs and letters: " + knobs + ", " + letters); knobArranger = new KnobArranger(letters, knobs); knobArranger.Arrange(0f); grabStrategy = new GrabStrategy(knobs, knobArranger, debug); hands.OnHandUpdate += OnHandUpdate; }
void Start() { hands = GetComponent <IHands>(); debug = GetComponent <LiveDebug>(); var predictor = new DataBasedAlphabeticPredictor(EnglishWords.AsList()); var layerCreator = new LetterBasedLayerCreator(letters, predictor); knobArranger = new KnobArranger(letters, knobs, layerCreator, new ConsistentAlphabeticLogicalLettersPlacer()); knobArranger.Arrange(0f); var gestures = new Gestures(knobs); gesturesStrategy = new GesturesStrategy(gestures, knobArranger, debug); hands.OnHandUpdate += OnHandUpdate; gesturesStrategy.OnWord += wordSuggester.Suggest; }
void Start() { controller = GetComponent <HandController>(); debug = GetComponent <LiveDebug>(); hand = new LeapHand(this, debug); }
public LeapHand(LeapHands hands, LiveDebug debug) { this.debug = debug; this.hands = hands; }