Exemplo n.º 1
0
    public void OnLevel(PropertyDriver driver)
    {
        if (material)
        {
            float level = driver.LevelScalar();

            material.SetColor(emissionColorID, emissionColor * level);
        }
    }
Exemplo n.º 2
0
    public void OnLevel(PropertyDriver driver)
    {
        float level = driver.LevelScalar();

        if (ps)
        {
#if UNITY_4_6
            ps.playbackSpeed = 1.0f + level;
#else
            ParticleSystem.MainModule module;
            module = ps.main;

            module.simulationSpeed = 1.0f + level;
#endif
        }
    }