public void ActivatePart <T>() { T inst = forearm.GetComponent <T>(); Part part = (Part)Convert.ChangeType(inst, typeof(T)); //part.enabled = true; part.ActivatePart(); UpdateTipColor(part); }