Check out example codes for "transform.translate unity". It will help you in understanding the concepts better.

Code Example 1

public Transform tr; //make reference in Unity Inspector

public float SpdX = 1f;
public float SpdY = 0f;

private void Update()
{
	tr.Translate(new Vector2(SpdX, SpdY));
}				//you use Vector3 if you use 3d

Code Example 2

transform.Translate(Vector3.up * Time.deltaTime, Space.World);

Code Example 3

using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
    void Update()
    {
        // Move the object forward along its z axis 1 unit/second.
        transform.Translate(Vector3.forward * Time.deltaTime);        // Move the object upward in world space 1 unit/second.
        transform.Translate(Vector3.up * Time.deltaTime, Space.World);
    }
}

Learn ReactJs, React Native from akashmittal.com