initial upload

This commit is contained in:
niko
2026-05-24 12:14:04 +02:00
parent 213ed4c965
commit 2526aab9c7
961 changed files with 457060 additions and 10 deletions
@@ -0,0 +1,33 @@
using System;
using UnityEngine;
[Serializable]
public class destoryaftertimer : MonoBehaviour
{
public float timeOut;
public bool detachChildren;
public destoryaftertimer()
{
timeOut = 1f;
}
public virtual void Awake()
{
Invoke("DestroyNow", timeOut);
}
public virtual void DestroyNow()
{
if (detachChildren)
{
transform.DetachChildren();
}
UnityEngine.Object.DestroyObject(gameObject);
}
public virtual void Main()
{
}
}