// Token: 0x06000F18 RID: 3864 RVA: 0x00063E78 File Offset: 0x00062078 protected IEnumerator StartHidingPickupForSeconds(int seconds) { this.IsAvailable = false; ParticleEffectController.ShowPickUpEffect(this._pickupItem.position, 100); foreach (MeshRenderer r in this._renderers) { if (r != null) { r.enabled = false; } } if (seconds > 0) { yield return(new WaitForSeconds((float)seconds)); ParticleEffectController.ShowPickUpEffect(this._pickupItem.position, 5); yield return(new WaitForSeconds(1f)); foreach (MeshRenderer r2 in this._renderers) { r2.enabled = true; } this.IsAvailable = true; } else { base.enabled = false; yield return(new WaitForSeconds(2f)); UnityEngine.Object.Destroy(base.gameObject); } yield break; }
// Token: 0x06000F19 RID: 3865 RVA: 0x00063EA4 File Offset: 0x000620A4 public void SetItemAvailable(bool isVisible) { if (isVisible) { ParticleEffectController.ShowPickUpEffect(this._pickupItem.position, 5); } else if (this.IsAvailable) { ParticleEffectController.ShowPickUpEffect(this._pickupItem.position, 100); } foreach (MeshRenderer renderer in this._renderers) { if (renderer) { renderer.enabled = isVisible; } } this.IsAvailable = isVisible; }