private void OffPostAnswer() { postAnswerObject.SetActive(false); SlideOutObj.SetActive(false); if (currentQuestionNumber <= streakList.Length - 1) { GetNextQuestion(); } //SlideIn(); }
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(); }
public void SlideOut() { SlideInObj.SetActive(false); SlideOutObj.SetActive(true); StartCoroutine(ShowPostAnswerDelay()); }