Пример #1
0
    IEnumerator WaitAndCheck()
    {
        yield return(new WaitForSeconds(0.2f));

        bool canStep = stepCont.CheckCanStep();

        if (!canStep)
        {
            stepCont.staepActivate = false;
            SwitchTurn();
        }
    }