Cant StartCoroutine

void Start()
{
StartCoroutine (Bot());
}
IEnumerator Bot ()
{
Debug.Log (“started”);
}

not thing happen

Not sure what @josh-naylor is on about - there’s nothing wrong with specifying the ienumerator rather than the methodname. The problem, if you look in the console log, is that not all your code paths return a value.

void Start()
{
    StartCoroutine (Bot());
}
IEnumerator Bot ()
{
    Debug.Log ("started");
    yield return null;
}

Add this in the Bot function: yield return new WaitForSeconds(2); .
Or add yield return null; if you don’t want your coroutine to wait for anything.

Something like:

IEnumerator Bot ()
{
     Debug.Log ("started");
     yield return new WaitForSeconds(2);
     Debug.Log ("ended (2 sec later)");
}