0
0
MAMehmet Ali Ercan
The Drag method is defined as follows:
public void Drag(Transform pos) { isDragging = true; dropPos = pos.position; StartCoroutine(DragSlowly(pos)); }
The DragSlowly routine is defined as follows:
private void DragSlowly(Transform pos) { easing.OutElastic.Enabled = false; easing.OutElastic.Duration = Time.deltaTime5; easing.OutElastic.Pressure = 0.5Gravity.Ground; easing.OutElastic. friction = 0.
public void Drag(Transform pos)
{
isDragging = true;
dropPos = pos.position;
StartCoroutine(DragSlowly(pos));
}