private void SlowUpdate() { if (m_slowSpeedImage.color.a < 1) { float deltaAlpha = (1 / m_transTime) * Time.deltaTime; float alpha = m_slowSpeedImage.color.a + deltaAlpha; CCommonFunction.SetImageAlpha(m_slowSpeedImage, alpha); } }
protected void EndUpdate() { float alphaDelta = Time.deltaTime / m_imageTransitionTime; if (m_gameOverImage.color.a < 1) { CCommonFunction.SetImageAlpha(m_gameOverImage, m_gameOverImage.color.a + alphaDelta); } else { CCommonFunction.SetImageAlpha(m_gameOverImage, 1); StartGame(); } }
protected void PrepareRunningUpdate() { float alphaDelta = Time.deltaTime / m_imageTransitionTime; if (m_gameStartImage.color.a > 0) { CCommonFunction.SetImageAlpha(m_gameStartImage, m_gameStartImage.color.a - alphaDelta); } else if (m_gameOverImage.color.a > 0) { CCommonFunction.SetImageAlpha(m_gameOverImage, m_gameOverImage.color.a - alphaDelta); } else { CCommonFunction.SetImageAlpha(m_gameStartImage, 0); CCommonFunction.SetImageAlpha(m_gameOverImage, 0); StartGame(); } }
protected void InitImage() { CCommonFunction.SetImageAlpha(m_gameStartImage, m_initStartImageAlpha); CCommonFunction.SetImageAlpha(m_gameOverImage, 0); }