Commit c8b22c33 authored by mercury233's avatar mercury233 Committed by Unicorn369

speed up card drop

parent 205eeb06
......@@ -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