private void TakeEnergy(bool take, Grip grip, LimbsEnum limb) { if (grip) { Extremity e = Joints[(int)limb].GetComponent <Extremity>(); if (e) { grip.inRangeExtremity = e; } if (take) { grip.TakeEnergy(GripCount()); } else { grip.PreviewEnergy(GripCount()); } } }