public void Display(TapValue value) { if (m_debug && value != null) { m_debug.text = value.ToString() + "\n" + m_debug.text; } }
public TapComboSequence(params TapCombo[] sequentialCombos) { TapValue[] newValues = new TapValue[sequentialCombos.Length]; for (int i = 0; i < sequentialCombos.Length; i++) { newValues[i] = new TapValue(sequentialCombos[i]); } m_tapValueSequence = newValues; }
public void SayTapWithUs(TapValue value) { ComboTowhatToWay combo = CheckForCorresponding(value); if (combo != null) { m_displayInfo.SetWith(combo.m_message, value, combo.m_color, combo.m_clip, combo.m_texture); } }
internal void SetWith(TapValue value) { if (value == null) { return; } for (int i = 0; i < 5; i++) { m_combo[i].isOn = (value.IsFingerActive(i)); } }
public void SetWith(string textToDisplay, TapValue handValue, Color color, AudioClip audio = null, Texture2D image = null) { SetCommunValues(textToDisplay, color, audio, image); DeactivateAll(); if (m_tapHand) { SetComboDisplay(true); m_tapHand.SetWith(handValue); } }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (this.GetType() != obj.GetType()) { return(false); } TapValue p = (TapValue)obj; return(this.m_combo == p.m_combo); }
private ComboTowhatToWay CheckForCorresponding(TapValue value) { if (value == null) { return(null); } ComboTowhatToWay[] combos = m_comboWithUsToSaying.Where(k => value.m_combo == k.m_combo.m_combo).ToArray(); Debug.Log("Try " + combos.Length + " " + value.ToString()); if (combos.Length > 0) { return(combos[0]); } return(null); }
void Update() { string input = Input.inputString; if (input.Length > 0) { foreach (char c in input.ToCharArray()) { if (m_listenToEloiStandard) { HandedTapValue eloiValue = TapUtility.GetTapBasedOnEloiStandard(c); m_onEloiStandardDetected.Invoke(eloiValue); } if (m_listenToTapWithUsStandard) { TapValue tapValue = TapUtility.GetTapBasedOnTapWithUsStandard(c); m_onTapWithUsDetected.Invoke(tapValue); } } } }
public CharacterToTapWithUsStandard(char character, TapCombo combo, int count = 1) { m_character = character; m_tapvalue = new TapValue(combo); m_count = count; }
public CharacterToEloiStandard(char character, HandType hand, TapCombo combo) { m_character = character; m_handType = hand; m_tapValue = new TapValue(combo); }