예제 #1
0
 private void OnSelected(InputDetectorTouch touch)
 {
     if (OnAnswerClicked != null)
     {
         OnAnswerClicked(this);
     }
 }
예제 #2
0
 private void SendTouchReleaseEvent(InputDetectorTouch touch)
 {
     if (OnTouchRelease != null)
     {
         OnTouchRelease(touch);
     }
 }
예제 #3
0
 void OnTouchAndRelease(InputDetectorTouch touch)
 {
     if (OnLaterPressed != null)
     {
         OnLaterPressed();
     }
 }
예제 #4
0
 private void OnNextPressed(InputDetectorTouch touch)
 {
     if (OnResultNextButtonPressed != null)
     {
         OnResultNextButtonPressed();
     }
 }
예제 #5
0
 private void OnRetryPressed(InputDetectorTouch touch)
 {
     if (OnResultRetryButtonPressed != null)
     {
         OnResultRetryButtonPressed();
     }
 }
예제 #6
0
 private void OnTouchAndRelease(InputDetectorTouch touch)
 {
     if (touchAndReleseSound != null)
     {
         PlaySound(touchAndReleseSound);
     }
 }
예제 #7
0
 private void SendTouchAnywhereEvent(InputDetectorTouch touch)
 {
     if (OnTouchAnywhere != null)
     {
         OnTouchAnywhere(touch);
     }
 }
예제 #8
0
 void OnTouchAndRelease(InputDetectorTouch touch)
 {
     if (OnWordChoiceClicked != null)
     {
         OnWordChoiceClicked(this);
     }
 }
예제 #9
0
 private void SendTouchEvent(InputDetectorTouch touch)
 {
     if (OnTouch != null)
     {
         OnTouch(touch);
     }
 }
예제 #10
0
파일: Button.cs 프로젝트: thanhtr/LingoQuiz
 protected virtual void OnButtonPress(InputDetectorTouch touch)
 {
     if (OnPressed != null)
     {
         OnPressed(this);
     }
 }
예제 #11
0
 private void OnTouchReleaseAnywhere(InputDetectorTouch touch)
 {
     if (isPressed)
     {
         SwitchButtonPressed(false);
     }
     isPressed = false;
 }
예제 #12
0
 private void OnRelease(InputDetectorTouch touch)
 {
     if (releaseSound != null && isPressed)
     {
         PlaySound(releaseSound);
         isPressed = false;
     }
 }
예제 #13
0
 public void OnTouchReleaseAnywhere(InputDetectorTouch touch)
 {
     if (touched == true)
     {
         ScaleOnReleased();
     }
     touched = false;
 }
예제 #14
0
 private void OnTouch(InputDetectorTouch touch)
 {
     Debug.Log("play touch sound");
     if (touchSound != null)
     {
         PlaySound(touchSound);
         isPressed = true;
     }
 }
예제 #15
0
    protected virtual void OnTouchRelease(InputDetectorTouch touch)
    {
        if (isTouched)
        {
            SendSelectionEvent();
        }

        isTouched = false;
    }
예제 #16
0
 protected override void OnButtonPressAndRelease(InputDetectorTouch touch)
 {
     Debug.Log("next press");
     if (main == null)
     {
         main = FindObjectOfType <QuizMainView>();
     }
     main.SendMessage("OnNextButtonPressed", this, SendMessageOptions.DontRequireReceiver);
 }
예제 #17
0
    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;
        }
    }
예제 #18
0
    void OnTouchAndRelease(InputDetectorTouch touch)
    {
        if (soundOn)
        {
            textMesh.text = "sound: off";
            soundOn       = false;
        }
        else
        {
            textMesh.text = "sound: on";
            soundOn       = true;
        }

        setting.soundOn = soundOn;
        setting.SaveAll();
    }
예제 #19
0
    void OnTouchAndRelease(InputDetectorTouch touch)
    {
        if (musicOn)
        {
            textMesh.text = "music: off";
            musicOn       = false;
        }
        else
        {
            textMesh.text = "music: on";
            musicOn       = true;
        }

        setting.musicOn = musicOn;
        setting.SaveAll();
    }
예제 #20
0
    private void OnTouchReleaseAnywhere(InputDetectorTouch touch)
    {
        if (waitingForTouch)
        {
            waitingForTouch = false;

            if (hasNextQuestion)
            {
                SlideToNextView();
            }
            else
            {
                ShowResultView();
            }

            Invoke("ChangeDisplayNumber", 0.25f);
        }
    }
예제 #21
0
    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();
    }
예제 #22
0
 void OnTouchReleaseAnywhere(InputDetectorTouch touch)
 {
     state = State.Sliding;
 }
예제 #23
0
 void OnTouchAndRelease(InputDetectorTouch touch)
 {
     Debug.Log("Info");
 }
예제 #24
0
 void OnTouchAndRelease(InputDetectorTouch touch)
 {
     Loader.LoadQuizList();
 }
예제 #25
0
 public void OnTouch(InputDetectorTouch touch)
 {
     touched = true;
     ScaleTouch();
 }
예제 #26
0
 protected virtual void OnItemTouch(InputDetectorTouch touch)
 {
     isTouched     = true;
     touchMovement = 0f;
     touchStartPos = inputDetector.GetTouchScreenPosition();
 }
예제 #27
0
 void OnTouchAndRelease(InputDetectorTouch touch)
 {
     Application.OpenURL("https://www.facebook.com/lingoteach");
 }
예제 #28
0
 private void OnTouch(InputDetectorTouch touch)
 {
     isPressed = true;
     SwitchButtonPressed(isPressed);
 }
예제 #29
0
파일: Button.cs 프로젝트: thanhtr/LingoQuiz
 protected virtual void OnButtonPressAndRelease(InputDetectorTouch touch)
 {
 }
예제 #30
0
 // Use this for initialization
 void Awake()
 {
     externalListeners  = new List <GameObject>();
     inputDetectorTouch = new InputDetectorTouch();
 }