Beispiel #1
0
 public override void Interact(Pickup heldObject, PlayerInteractor player)
 {
     if (heldObject == null)
     {
         player.SetHeldObject(this, true);
     }
 }
Beispiel #2
0
 public override void Interact(Pickup heldObject, PlayerInteractor player)
 {
     if (heldObject is RawFood)
     {
         return;
     }
     player.Drop();
     player.SetHeldObject(Instantiate(foodPrefab, player.transform.position, Quaternion.identity), true);
 }