Example #1
0
    private IEnumerator removeFromTable()
    {
        ToyObject.GetComponent <BoxCollider>().enabled = false;
        yield return(new WaitForSeconds(0.27f));

        audioController.playAudioClip("TableSounds/Add", 0, -1);
        yield return(new WaitForSeconds(0.8f));

        TableObject tempTableObject = ToyObject.GetComponent <TableObject>();

        // tempTableObject.finishedRecord = true;

        tempTableObject.SetHandHoldObject(true, parentFinger);

        ToyObject.transform.GetChild(0).gameObject.SetActive(false);
        ToyObject.transform.GetChild(1).gameObject.SetActive(false);
    }