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

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

        _done_shaking = true;
    }