Check out example codes for "unity movetowards 2d". It will help you in understanding the concepts better.

Code Example 1

/// <summary>
/// Move 2D sprite towards target
/// </summary>
/// <param name="target"></param>
/// <param name="movementSpeed"></param>
private void Move(Vector3 target, float movementSpeed)
{
    //Move
    transform.position += (target - transform.position).normalized * movementSpeed * Time.deltaTime;
}

Learn ReactJs, React Native from akashmittal.com