/* * 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; }
public void SetBallTarget(BasicVelocity movingTarget) { m_movingTarget = movingTarget; }
public void throwBall(BasicVelocity b) { m_movingTarget = b; m_rb.velocity = CalculateInitialVelocityMovingTarget(); }