Exemplo n.º 1
0
    IEnumerator SetPanPower()
    {
        Sym4DEmulator.Sym4D_W_StartContents(wPort);
        yield return(new WaitForSeconds(0.5f));

        isWind = !isWind;
        if (isWind)
        {
            Sym4DEmulator.Sym4D_W_SendMosionData((int)_currForce);
        }
        yield return(ws);

        yield return(SetPanPower());
    }
Exemplo n.º 2
0
    IEnumerator SetWind()
    {
        Sym4DEmulator.Sym4D_W_StartContents(wPort);
        yield return(new WaitForSeconds(0.5f));

        isWind = !isWind;
        if (isWind)
        {
            Sym4DEmulator.Sym4D_W_SendMosionData(100);
        }
        else
        {
            Sym4DEmulator.Sym4D_W_SendMosionData(0);
            Sym4DEmulator.Sym4D_W_EndContents();
        }
    }