OldBlueWater/BlueWater/Assets/Distant Lands/Cozy Weather/Contents/Scripts/Utility/FXParent.cs
2023-09-13 14:07:40 +09:00

18 lines
319 B
C#

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);
}
}
}