Ejemplo n.º 1
0
    private void Start()
    {
        ps = GetComponent <ParticleSystem>();

        ColorHSV c = new ColorHSV(filterColor);

        c.S         = 1;
        c.V         = 1;
        filterColor = c.ToRGB();

        flashlight.GetComponentInChildren <ParticlesTriggerEventReader>().AddPhotonProcessor(this, GetComponentInChildren <Collider>(), ParticleSystemTriggerEventType.Enter);
    }