void Canon::Update() { float dt = gTimer->GetDeltaTime(); Rotate(dt); Shoot(dt); AddLife(dt); }
//スコア加算 int CSystem::AddScore(LONGLONG s) { LONGLONG old = score; LONGLONG mul = 1; score += s * mul; if( score >= extend_score && old < extend_score) { extend_count += 1; extend_score += extend_interval * extend_count; g_pMaterial->sndLife.Play(0); AddLife(1); } return 1; }