Exemple #1
0
    void Finish()
    {
        BResources.ReleaseToPool(this.gameObject);

        //Note:
        // This takes the gameObject instance, and NOT the prefab instance.
        // Without this call the object will never be available for re-use!
        // gameObject.SetActive(false) is automatically called
    }