private void OnSelected(InputDetectorTouch touch) { if (OnAnswerClicked != null) { OnAnswerClicked(this); } }
private void SendTouchReleaseEvent(InputDetectorTouch touch) { if (OnTouchRelease != null) { OnTouchRelease(touch); } }
void OnTouchAndRelease(InputDetectorTouch touch) { if (OnLaterPressed != null) { OnLaterPressed(); } }
private void OnNextPressed(InputDetectorTouch touch) { if (OnResultNextButtonPressed != null) { OnResultNextButtonPressed(); } }
private void OnRetryPressed(InputDetectorTouch touch) { if (OnResultRetryButtonPressed != null) { OnResultRetryButtonPressed(); } }
private void OnTouchAndRelease(InputDetectorTouch touch) { if (touchAndReleseSound != null) { PlaySound(touchAndReleseSound); } }
private void SendTouchAnywhereEvent(InputDetectorTouch touch) { if (OnTouchAnywhere != null) { OnTouchAnywhere(touch); } }
void OnTouchAndRelease(InputDetectorTouch touch) { if (OnWordChoiceClicked != null) { OnWordChoiceClicked(this); } }
private void SendTouchEvent(InputDetectorTouch touch) { if (OnTouch != null) { OnTouch(touch); } }
protected virtual void OnButtonPress(InputDetectorTouch touch) { if (OnPressed != null) { OnPressed(this); } }
private void OnTouchReleaseAnywhere(InputDetectorTouch touch) { if (isPressed) { SwitchButtonPressed(false); } isPressed = false; }
private void OnRelease(InputDetectorTouch touch) { if (releaseSound != null && isPressed) { PlaySound(releaseSound); isPressed = false; } }
public void OnTouchReleaseAnywhere(InputDetectorTouch touch) { if (touched == true) { ScaleOnReleased(); } touched = false; }
private void OnTouch(InputDetectorTouch touch) { Debug.Log("play touch sound"); if (touchSound != null) { PlaySound(touchSound); isPressed = true; } }
protected virtual void OnTouchRelease(InputDetectorTouch touch) { if (isTouched) { SendSelectionEvent(); } isTouched = false; }
protected override void OnButtonPressAndRelease(InputDetectorTouch touch) { Debug.Log("next press"); if (main == null) { main = FindObjectOfType <QuizMainView>(); } main.SendMessage("OnNextButtonPressed", this, SendMessageOptions.DontRequireReceiver); }
void OnTouchAnywhere(InputDetectorTouch touch) { if (RayHitsCollider(touch.screenPosition)) { touchStartPosition = Camera.main.ScreenToWorldPoint(touch.screenPosition); touchStartPosition.z = content.transform.position.z; previousPosition = content.transform.position; state = State.Touched; speed = 0f; } }
void OnTouchAndRelease(InputDetectorTouch touch) { if (soundOn) { textMesh.text = "sound: off"; soundOn = false; } else { textMesh.text = "sound: on"; soundOn = true; } setting.soundOn = soundOn; setting.SaveAll(); }
void OnTouchAndRelease(InputDetectorTouch touch) { if (musicOn) { textMesh.text = "music: off"; musicOn = false; } else { textMesh.text = "music: on"; musicOn = true; } setting.musicOn = musicOn; setting.SaveAll(); }
private void OnTouchReleaseAnywhere(InputDetectorTouch touch) { if (waitingForTouch) { waitingForTouch = false; if (hasNextQuestion) { SlideToNextView(); } else { ShowResultView(); } Invoke("ChangeDisplayNumber", 0.25f); } }
void OnTouchAndRelease(InputDetectorTouch touch) { if (soundOn) { //textMesh.text = "sound: off"; sprite.SetSprite("mute"); soundOn = musicOn = false; } else { //textMesh.text = "sound: on"; sprite.SetSprite("sound"); soundOn = musicOn = true; } setting.soundOn = soundOn; setting.musicOn = musicOn; setting.SaveAll(); }
void OnTouchReleaseAnywhere(InputDetectorTouch touch) { state = State.Sliding; }
void OnTouchAndRelease(InputDetectorTouch touch) { Debug.Log("Info"); }
void OnTouchAndRelease(InputDetectorTouch touch) { Loader.LoadQuizList(); }
public void OnTouch(InputDetectorTouch touch) { touched = true; ScaleTouch(); }
protected virtual void OnItemTouch(InputDetectorTouch touch) { isTouched = true; touchMovement = 0f; touchStartPos = inputDetector.GetTouchScreenPosition(); }
void OnTouchAndRelease(InputDetectorTouch touch) { Application.OpenURL("https://www.facebook.com/lingoteach"); }
private void OnTouch(InputDetectorTouch touch) { isPressed = true; SwitchButtonPressed(isPressed); }
protected virtual void OnButtonPressAndRelease(InputDetectorTouch touch) { }
// Use this for initialization void Awake() { externalListeners = new List <GameObject>(); inputDetectorTouch = new InputDetectorTouch(); }