OldBlueWater/BlueWater/Assets/Distant Lands/Cozy Weather/Contents/Scripts/Utility/FXParent.cs

18 lines
319 B
C#
Raw Normal View History

2023-09-13 05:07:40 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace DistantLands.Cozy
{
[ExecuteAlways]
public class FXParent : MonoBehaviour
{
void OnEnable()
{
if (transform.parent == null)
DestroyImmediate(gameObject);
}
}
}