private IEnumerator ReActivatePickableIn(int sec) { yield return(new WaitForSeconds(sec)); isPicked = false; pickableCollider.enabled = !isPicked; animator.SetBool("isPicked", isPicked); CollectiblesManager.UpdateItemState(this); //Debug.Log($"Regenarted pickable{this.Id}"); }
public void setPicked(bool _isPicked) { isPicked = _isPicked; pickableCollider.enabled = !isPicked; CollectiblesManager.UpdateItemState(this); }