Ejemplo n.º 1
0
    private void Update()
    {
        if (clickHereToRemoveObject)
        {
            chunk.RemoveFeature(0, true);
        }
        if (clickHereToAddObject)
        {
            GameObject go = Instantiate(cube, chunk.transform.position, Quaternion.identity);
            chunk.AddFeature(go, true);
        }

        clickHereToRemoveObject = false;
        clickHereToAddObject    = false;
    }