Esempio n. 1
0
    IEnumerator WaitForStoppingGame()
    {
        circleController.StopRotationOfCircle();

        yield return(new WaitForSeconds(WAIT_TIME_LOSING));

        SwitchStateToDefeat();

        wormController.ChangeStateToStop();
        circleController.ChangeStateToStop();

        ResetValues();
    }