Upload from upload_mods.ps1
This commit is contained in:
22
Scripts/Utilities/TemporaryMuzzleFlash.cs
Normal file
22
Scripts/Utilities/TemporaryMuzzleFlash.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user