Ejemplo n.º 1
0
    public void Reuse(Vector3 position, Quaternion rotation)
    {
        gameObject.SetActive(true);

        if (hasPoolObjectComponent)
        {
            poolObject.DisableComponents();
        }

        transform.position = position;
        transform.rotation = rotation;

        if (hasPoolObjectComponent)
        {
            poolObject.OnObjectReuse();
        }
    }