예제 #1
0
 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);
 }
예제 #2
0
    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);
    }