Пример #1
0
 private void OffPostAnswer()
 {
     postAnswerObject.SetActive(false);
     SlideOutObj.SetActive(false);
     if (currentQuestionNumber <= streakList.Length - 1)
     {
         GetNextQuestion();
     }
     //SlideIn();
 }
Пример #2
0
    IEnumerator ShowPostAnswerDelay()
    {
        while (SlideOutObj.GetComponent <Animator>().GetCurrentAnimatorStateInfo(0).length >
               SlideOutObj.GetComponent <Animator>().GetCurrentAnimatorStateInfo(0).normalizedTime)
        {
            Debug.Log("&&&&&&&&&&&&&&&& Playing"); yield return(null);
        }

        yield return(new WaitForEndOfFrame());

        ShowPostAnswer();
    }
Пример #3
0
 public void SlideOut()
 {
     SlideInObj.SetActive(false);
     SlideOutObj.SetActive(true);
     StartCoroutine(ShowPostAnswerDelay());
 }