Ejemplo n.º 1
0
    public void Use()
    {
        switch (playerPos.childCount)
        {
        case 0:
            ItemInstantiate();
            StartCoroutine("FindItenName");
            break;

        case 1:
            spawn.DestroyItem();
            ItemInstantiate();
            StartCoroutine("FindItenName");
            break;

        default:
            return;
        }
    }