27 lines
335 B
C#
27 lines
335 B
C#
using UnityEngine;
|
|
|
|
public class TopFx : MonoBehaviour
|
|
{
|
|
public int topFxId;
|
|
|
|
[SerializeField]
|
|
private ParticleSystem particleSystem;
|
|
|
|
[SerializeField]
|
|
private Animator animator;
|
|
|
|
private void Start()
|
|
{
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
}
|
|
|
|
public void Play()
|
|
{
|
|
particleSystem.Play();
|
|
animator.SetInteger("Fx", topFxId);
|
|
}
|
|
}
|