Пример #1
0
    public void OnClick()
    {
        AudioSource _playable = GetComponent <AudioSource>();

        if (_isCorrect)
        {
            Debug.Log("odpowiedz poprawna");
            _playable.clip = CorrectAnswerSound;
            _playable.Play();
        }
        else
        {
            Debug.Log("zleeeee");
            LivesController.WrongAnswer();
            _playable.clip = WrongAnswerSound;
            _playable.Play();
        }
    }