private void GameBallOutofRange(BombBall ball) { m_start = false; Vector3 position = m_bombBall.GetPosition(); if (position.y > 0) { //m_contestData.AddHeart(); m_aiIndex = 0; m_aiBombTime += 2f; } else { //m_contestData.ReduceHeart(); m_playerIndex = 0; m_playerBombTime += 2f; } if (m_contestData != null && !m_contestData.m_changeAudio && m_change) { GameAudioModuel audioModuel = GameStart.GetInstance().AudioModuel; audioModuel.StopAudio(); } m_bombBall.ResetVelocity(); m_bombBall.SetPosition(m_ground.GroundData.GetFireBallPoint(ESide.Player)); m_aiController.SwitchState(EAIControlState.BackToBornPoint); // if (m_contestData.m_heart < 0) // { // m_player.SetIdle(); // m_aiController.gameObject.SetActive(false); // } }