Exemplo n.º 1
0
    void poofPoofer(int index, int direction, float value)
    {
        LayerController layerController = layerControllers[index];

        poofer = layerController.pooferCW;
        if (direction == 1)
        {
            poofer = layerController.pooferCCW;
        }

        int emit = Mathf.RoundToInt(value * emissionRate);

        poofer.Emit(emit);

        layerController.poofPoofer();
    }