public void OnLevel(PropertyDriver driver) { if (material) { float level = driver.LevelScalar(); material.SetColor(emissionColorID, emissionColor * level); } }
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 } }