private IEnumerator _DoTutorial() { var t = 0f; var timeToMove = 0.5f; while (t < 1) { t += Time.deltaTime / timeToMove; m_background.alpha = t; m_skip.alpha = t; yield return(null); } m_background.blocksRaycasts = true; m_background.interactable = true; m_partOne.gameObject.SetActive(true); yield return(m_partOne._AnimateVertexColors()); m_partTwo.gameObject.SetActive(true); yield return(m_partTwo._AnimateVertexColors()); t = 0f; timeToMove = 0.5f; while (t < 1f) { t += Time.deltaTime / timeToMove; m_values.alpha = t; yield return(null); } yield return(new WaitForSeconds(2f)); t = 0f; timeToMove = 0.5f; while (t < 1f) { t += Time.deltaTime / timeToMove; m_start.alpha = t; yield return(null); } }
public void Play() { StartCoroutine(m_text._AnimateVertexColors()); StartCoroutine(_SkipAfterTextDone()); }