21 lines
466 B
C#
21 lines
466 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Playables;
|
|
|
|
public class RYGZDieEvent : MonoBehaviour
|
|
{
|
|
public PlayableDirector playable;
|
|
public LayeredPool layeredPool;
|
|
public List<GameObject> bJ_BeiShu;
|
|
private void Awake()
|
|
{
|
|
playable.Play();
|
|
playable.played += PlayEnd;
|
|
}
|
|
public void PlayEnd(PlayableDirector playableDirector)
|
|
{
|
|
Destroy(gameObject);
|
|
}
|
|
}
|