int m_tempIndex = -1;// 字幕数组的index
bool m_finishOne = false;// 完成一列字
bool m_isFontPlaying = true;// 正在播放字
string[] m_tempContent = null;// 临时存储表中的字幕
IEnumerator PlayText()
{// 打字
for (int i=0;i< m_tempContent[m_tempIndex].Length;++i)
{
if (m_tempIndex < m_contentArral.Length && m_tempIndex >= 0)
{
m_contentArral[m_tempIndex].text += m_tempContent[m_tempIndex][i];
yield return new WaitForSeconds(0.12f);
}
}
m_finishOne = true;
}
public void Update()
{
if (m_finishOne)
{// 完成一个
m_finishOne = false;
m_isFontPlayin
bool m_finishOne = false;// 完成一列字
bool m_isFontPlaying = true;// 正在播放字
string[] m_tempContent = null;// 临时存储表中的字幕
IEnumerator PlayText()
{// 打字
for (int i=0;i< m_tempContent[m_tempIndex].Length;++i)
{
if (m_tempIndex < m_contentArral.Length && m_tempIndex >= 0)
{
m_contentArral[m_tempIndex].text += m_tempContent[m_tempIndex][i];
yield return new WaitForSeconds(0.12f);
}
}
m_finishOne = true;
}
public void Update()
{
if (m_finishOne)
{// 完成一个
m_finishOne = false;
m_isFontPlayin