2025-07-08 10:46:31 +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);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|