Pink/Assets/Graphics/Hero Knight - Pixel Art/Demo/DestroyEvent_HeroKnight.cs

14 lines
334 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DestroyEvent_HeroKnight : MonoBehaviour
{
// Destroy particles when animation has finished playing.
// destroyEvent() is called as an event in animations.
public void destroyEvent()
{
Destroy(gameObject);
}
}