void StageStart::Update()
{
	if( !m_stagePhaseTex.m_pTex2D ){
		DEBUG_ASSERT( 0, "m_stagePhaseTex.m_pTex2D is NULL");
		return;
	}
	
	TEX_DRAW_INFO &info01 = m_stagePhaseTex.m_pTex2D->UpdateDrawInfo();
	TEX_DRAW_INFO &info02 = m_stageClearTex.m_pTex2D->UpdateDrawInfo();

	// 移動更新
	FadeUpdate( info01 );
	if( m_counter > 30 ){
		FadeUpdate( info02 );
	}

	// 描画
	if( m_stagePhaseTex.m_pTex2D ){
		m_stagePhaseTex.m_pTex2D->DrawUpdate2D();
	}
	if( m_stageClearTex.m_pTex2D ){
		m_stageClearTex.m_pTex2D->DrawUpdate2D();
	}

	// 演出終了チェック
	if( info02.m_posOrigin.x > m_texSizeW*2.0f ){
		SetStateNext();
	}

	++m_counter;
}
Exemplo n.º 2
0
 // Update the pattern
 void Update()
 {
     if((millis() - lastUpdate) > Interval) // time to update
     {
       lastUpdate = millis();
       FadeUpdate();
     }
 }