Ejemplo n.º 1
0
    public void DestroyObjects(SPAWN_CONTAINER_TYPE a_type)
    {
        Assert.AreNotEqual(a_type, SPAWN_CONTAINER_TYPE.NBCATEGORY, "Type not allowed");

        GameObject container = m_containers[a_type];

        Utils.DestroyChilds(container.transform);
    }
Ejemplo n.º 2
0
    public GameObject InstantiateObject(GameObject a_gameObject, Vector3 a_position, Quaternion a_rotation, SPAWN_CONTAINER_TYPE a_type = SPAWN_CONTAINER_TYPE.NOTHING)
    {
        Assert.AreNotEqual(a_type, SPAWN_CONTAINER_TYPE.NBCATEGORY, "Type not allowed");

        GameObject container = m_containers[a_type];

        // Debug.Log("[GameObjectManager] Instantiate :" + a_gameObject);

        return(Instantiate(a_gameObject, a_position, a_rotation, container.transform));
    }