void OnBallShooted(float inputDistance, float inputAngle) { GameManager.instance.InputManager().SetEnable(false); GameManager.instance.GUIManager().UpdateShootBarSlider(inputDistance); GameManager.instance.Camera().StartShootMovement(); m_Player.Shoot(inputDistance, inputAngle); }
private void Shoot() { float inputDistanceError = UnityEngine.Random.Range(-StaticConf.Gameplay.OPPONENT_AI_ERROR_OFFSET_DISTANCE_SHOOT, StaticConf.Gameplay.OPPONENT_AI_ERROR_OFFSET_DISTANCE_SHOOT); float inputAngleError = UnityEngine.Random.Range(-StaticConf.Gameplay.OPPONENT_AI_ERROR_OFFSET_ANGLE_SHOOT, StaticConf.Gameplay.OPPONENT_AI_ERROR_OFFSET_ANGLE_SHOOT); m_player.Shoot(m_player.PerfectShootValue + inputDistanceError, inputAngleError); }