public override void Use(GrabbableObject bp) { if (bp.GetType() == (typeof(BodyPart)) || bp.GetType().IsSubclassOf(typeof(BodyPart))) { bp.AsBodyPart().Harvest(); } }
public override void Use(GrabbableObject g) { if (g.GetType() == typeof(Blender)) { player.DropHolding(false); ((Blender)g).Use(this); Debug.Log("VVVRRRRRRRR"); } }
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); }