Simply make your variables public like so...
using UnityEngine;
using System.Collections;
public class NewScript : MonoBehaviour
{
public GameObject myGameObject;
}
On your script in the inspector then you can drag the relevant gameObject to populate the variable.