using System;
using UnityEngine;

public class PopcornStrikeEffect : MonoBehaviour
{
    [SerializeField] private ParticleSystemRenderer particleRenderA;
    [SerializeField] private ParticleSystemRenderer particleRenderB;
    [SerializeField] private ParticleSystemRenderer particleRenderC;
    [SerializeField] private Material burntMaterialA;
    [SerializeField] private Material burntMaterialB;
    [SerializeField] private Material burntMaterialC;

    public void ChangeSkin(CornCondition condition)
    {
        if (condition == CornCondition.Burnt)
        {
            particleRenderA.material = burntMaterialA;
            particleRenderB.material = burntMaterialB;
            particleRenderC.material = burntMaterialC;
        }
    }
}
