turnManager.clock C# (CSharp) Method

clock() private method

private clock ( ) : IEnumerator
return IEnumerator
    IEnumerator clock()
    {
        //print ("clock active!");
        while (turnStarted) {
            // The order is curcial!!
            yield return new WaitForSeconds (dataBase.stepTime);
            bManager.cleanBoard();
            time += 1;
            print ("Official Time = " + time.ToString ());
        }
        time = -1;
        //print ("clock off!");
    }