Ejemplo n.º 1
0
    /// <summary>
    /// sticks the GameObject back into it's recycle bin after a delay. If the GameObject has no bin it is destroyed.
    /// </summary>
    /// <param name="go">Go.</param>
    public static void DespawnAfterDelay(GameObject go, float delayInSeconds)
    {
        if (go == null)
        {
            return;
        }

        instance.StartCoroutine(instance.InternalDespawnAfterDelay(go, delayInSeconds));
    }