Esempio n. 1
0
 public override void Use(GrabbableObject bp)
 {
     if (bp.GetType() == (typeof(BodyPart)) || bp.GetType().IsSubclassOf(typeof(BodyPart)))
     {
         bp.AsBodyPart().Harvest();
     }
 }
Esempio n. 2
0
 public override void Use(GrabbableObject g)
 {
     if (g.GetType() == typeof(Blender))
     {
         player.DropHolding(false);
         ((Blender)g).Use(this);
         Debug.Log("VVVRRRRRRRR");
     }
 }
Esempio n. 3
0
 public override void Use(GrabbableObject o)
 {
     if (!o.GetType().IsSubclassOf(typeof(BodyPart)) || ((BodyPart)o).IsPlanted || currentValue == maxValue)
     {
         return;
     }
     sfx.PlayAudio(sfx.Blend);
     currentValue = currentValue.AddClamped(o.AsBodyPart().Value, 0f, maxValue);
     RefreshBlenderFill();
     Destroy(o.gameObject);
 }