Files
0A-KFCommonUtilityLib/Scripts/Utilities/TemporaryMuzzleFlash.cs
2025-06-04 16:13:32 +09:30

23 lines
531 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace KFCommonUtilityLib
{
public class TemporaryMuzzleFlash : TemporaryObject
{
private void OnDisable()
{
StopAllCoroutines();
if (destroyMaterials)
{
Utils.CleanupMaterialsOfRenderers<Renderer[]>(transform.GetComponentsInChildren<Renderer>());
}
Destroy(gameObject);
}
}
}