IEnumerator Gravity()
        {
            Vector3 distancePerFrame = MovementPhysics.MovementVelocity(0, gravity, 60);

            while (!inMotion)
            {
                transform.Translate(distancePerFrame);
                yield return(null);
            }
        }
        IEnumerator DashForward(int dashX, int dashY, int elapsedFrames)
        {
            Vector3 distancePerFrame = MovementPhysics.MovementVelocity(dashX, dashY, elapsedFrames);

            //Vector3(1/30, 0, 0)
            for (int i = 0; i < elapsedFrames; i++)
            {
                inMotion = true;
                transform.Translate(distancePerFrame);
                yield return(null);
            }
            double x = System.Math.Round(transform.position.x, 2);

            transform.position = new Vector3((float)x, transform.position.y, transform.position.z);
            inMotion           = false;
            Vector3 distanceAfter = new Vector3(distancePerFrame.x + distancePerFrame.y / 2, 0, 0);

            while (!isGrounded)
            {
                transform.Translate(distanceAfter);
                yield return(null);
            }
        }
 // Use this for initialization
 void Start()
 {
     rgbd      = GetComponent <Rigidbody2D>();
     moveSpeed = MovementPhysics.MovementVelocity(1, 0, 30);
 }