void OnDestroy() { if (task1 != null) { task1.Stop(); } }
public void Stop() { if (m_autoPlayTask != null) { m_autoPlayTask.Stop(); m_autoPlayTask = null; } }