Ejemplo n.º 1
0
    IEnumerator RaiseFloorBack(float voltage, float time)
    {
        while (!_done_shaking)
        {
            yield return(new WaitForSeconds(0.1f));
        }

        _done_shaking = false;
        Debug.Log("Floor Back" + " " + _current_shake_num);
        _FloorController.enable();
        _FloorController.raiseBack(voltage);
        yield return(new WaitForSeconds(time));

        _done_shaking = true;
    }