Пример #1
0
    IEnumerator NodHead_DownUpDownUp()
    {
        yield return(new WaitForSeconds(nodeHeadTuneTime));

        if (cameraControl.camstateX != CamStateX.Down)
        {
            up = true;

            yield return(new WaitForSeconds(nodeHeadTuneTime));

            if (cameraControl.camstateX == CamStateX.Down && up)
            {
                down = true;
            }

            yield return(new WaitForSeconds(nodeHeadTuneTime));

            if (cameraControl.camstateX != CamStateX.Down && down)
            {
                menudebug.DebugMsg("NodHead_DownUpDownUp()");

                print("NodHead_DownUpDownUp()");
            }
        }

        resetNod();
    }
    IEnumerator Begin(string s)
    {
        if (on && firstWait)
        {
            secondWait = true;
        }


        yield return(new WaitForSeconds(1.0f));

        firstWait = true;
        on        = true;

        menuDebug.DebugMsg(s);
    }