IEnumerator WaitForAnim(bool wasPickedUp) { yield return(new WaitForSeconds(1f)); if (ActivateButton != null) { ActivateButton.nbOfColliders--; ActivateButton.CheckOpen(); } if (wasPickedUp) { Destroy(gameObject); } }
IEnumerator WaitForAnim(bool wasPickedUp) { yield return(new WaitForSeconds(1f)); if (ActivateButton != null) { ActivateButton.nbOfColliders--; ActivateButton.CheckOpen(); } if (wasPickedUp) { Destroy(gameObject); } }