14 lines
334 B
C#
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);
|
|
}
|
|
}
|