controller.BallDropped();
}
- public void Shoot(Vector3 target)
+ public void Shoot(Vector3 target, float time)
{
transform.right = target - transform.position;
Rigidbody.velocity = Vector2.zero;
- Rigidbody.AddForce((transform.right + (transform.up * 0.5f)) * shotForce);
+ Rigidbody.AddForce((transform.right + (transform.up * 0.5f)) * (shotForce * ((Mathf.Clamp(time, 0f, 1f) + 1))));
}
}
}