Commit 08460702 authored by mercury233's avatar mercury233

speed up card drop

parent 791cad10
......@@ -98,12 +98,12 @@ public class MonoCardInDeckManager : MonoBehaviour {
{
physicalON();
isDraging = false;
if (Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl)||getIfAlive()==false)
if (Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl) || getIfAlive() == false)
{
Vector3 form_position = getGoodPosition(4);
Vector3 to_position = getGoodPosition(0);
Vector3 delta_position = to_position - form_position;
GetComponent<Rigidbody>().AddForce(delta_position * 200);
GetComponent<Rigidbody>().AddForce(delta_position * 1000);
dying = true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment