示例#1
0
    /*
     * private void OnCollisionEnter(Collision collision)
     * {
     *  Debug.Log("Time Elapsed: " + m_timeElapsed);
     * }
     */

    public void ThrowBall(BasicVelocity movingTarget, float accuracy)
    {
        //m_isRunning = !m_isRunning;
        SetBallTarget(movingTarget);
        _accuracyValue = accuracy;
        m_rb.velocity  = CalculateInitialVelocityMovingTarget();
        _isThrown      = true;
        //_isHeld = false;
    }
示例#2
0
 public void SetBallTarget(BasicVelocity movingTarget)
 {
     m_movingTarget = movingTarget;
 }
示例#3
0
 public void throwBall(BasicVelocity b)
 {
     m_movingTarget = b;
     m_rb.velocity  = CalculateInitialVelocityMovingTarget();
 }