Files
7d2dXG/Mods/0A-KFCommonUtilityLib/Scripts/Utilities/TemporaryMuzzleFlash.cs
Nathaniel Cosford 062dfab2cd Patched
2025-05-30 01:04:40 +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);
}
}
}