HeavenStudioPlus/Assets/Scripts/Games/BuiltToScaleDS/BTSPiece.cs

19 lines
375 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
2022-03-14 14:21:05 +00:00
using HeavenStudio.Util;
namespace HeavenStudio.Games.Scripts_BuiltToScaleDS
{
public class BTSPiece : MonoBehaviour
{
public Animator anim;
void LateUpdate()
{
if (anim.IsAnimationNotPlaying())
Destroy(gameObject);
}
}
}