UPF/Assets/NEW VFX TO CHECK/Particle Systems/_Common/Scripts/DestroyAfterTime.cs

66 lines
1.4 KiB
C#

// =================================
// Namespaces.
// =================================
using UnityEngine;
// =================================
// Define namespace.
// =================================
namespace MirzaBeig
{
namespace ParticleSystems
{
// =================================
// Classes.
// =================================
public class DestroyAfterTime : MonoBehaviour
{
// =================================
// Nested classes and structures.
// =================================
// ...
// =================================
// Variables.
// =================================
// ...
public float time = 2.0f;
// =================================
// Functions.
// =================================
// ...
void Start()
{
Destroy(gameObject, time);
}
// =================================
// End functions.
// =================================
}
// =================================
// End namespace.
// =================================
}
}
// =================================
// --END-- //
// =================================