Beispiel #1
0
        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}");
        }
Beispiel #2
0
 public void setPicked(bool _isPicked)
 {
     isPicked = _isPicked;
     pickableCollider.enabled = !isPicked;
     CollectiblesManager.UpdateItemState(this);
 }