Cozy Wather + buld systeme
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user