예제 #1
0
    IEnumerator WaitForAnim(bool wasPickedUp)
    {
        yield return(new WaitForSeconds(1f));

        if (ActivateButton != null)
        {
            ActivateButton.nbOfColliders--;
            ActivateButton.CheckOpen();
        }
        if (wasPickedUp)
        {
            Destroy(gameObject);
        }
    }