google

C#
print("i just made google")Ah yes, the classic. Googling Google! What a world we live in...ReferencedScript refScript;
 
 refScript = GetComponent<ReferencedScript>();You are diagnosed with stupidReally??? Just type google.com its not that hard...public class Petrol : MonoBehaviour
{
    public float speed;
    private float waitTime;
    public float startWaitTime;

    public Transform[] moveSpots;
    private int randomSpot;

    void Start()
	{
        waitTime = startWaitTime;
        randomSpot = Random.Range(0, moveSpots.Length);
	}

    void Update()
    {
        transform.position = Vector3.MoveTowards(transform.position, moveSpots[randomSpot].position, speed * Time.deltaTime);

        if (Vector3.Distance(transform.position, moveSpots[randomSpot].position) < 0.2f)
		{
            if(waitTime <= 0)
			{
                randomSpot = Random.Range(0, moveSpots.Length);
                waitTime = startWaitTime;
			} else
			{
                waitTime -= Time.deltaTime;
			}
		}
    }
}Mr. Stark, I don't feel so good...Steps to add java_home in Macbook

1. Open terminal window
2. Type command: $ vim ~/.bash_profile and Hit Enter
3. Type command: $ export JAVA_HOME=$(/usr/libexec/java_home) and press Escape key for Save changes.
4. Type command: :(colon)wq, It will Save and close .bash_profile file.
5. Type command: source ~/.bash_profile and hit Enter
6. Now we can check the value of the JAVA_HOME variable:
7. Type Command: echo $JAVA_HOME
 The result should be the path to the JDK installation:
 /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
print("hello")
public class RedGhost : MonoBehaviour
{
    private NavMeshAgent Red;
    public GameObject Player;
    public float RedDistanceRun = 4.0f;

    ReferencedScript refScript;

    void Start()
    {
        Red = GetComponent<NavMeshAgent>();
    }

    void Update()
    {
        float distance = Vector3.Distance(transform.position, Player.transform.position);

        if (distance < RedDistanceRun)

        {
            Vector3 dirToPlayer = transform.position - Player.transform.position;
            Vector3 newPos = transform.position - dirToPlayer;
            Red.SetDestination(newPos);
        }

        float attackRange = 30f;

        if (vector3.Distance(transform.position, Player.Instance.GetPosition()) < attackRange);

        float StopChaseDistance = 80f;
        if (vector3.Distance(transform.position, Player.Instance.GetPosition()) > StopChaseDistance
    }
}
Source

Also in C#: