Beispiel #1
0
 private bool PickUpObject(IPickUpAble pickedUpObj)
 {
     this.pickedUpObj = pickedUpObj;
     pickedUpObj.OnPickUp();
     pickUped = true;
     return(true);
 }
Beispiel #2
0
 private bool PickUpObject(IPickUpAble pickedUpObj)
 {
     if (onPickUp != null)
     {
         onPickUp.Invoke(pickedUpObj.Go);
     }
     this.pickedUpObj = pickedUpObj;
     pickedUpObj.OnPickUp();
     return(true);
 }