public void Slider_Chang(float newValue) { if (SelectedObject != null) { if (SelectedObject.gameObject != GameObject.Find("Cube(Clone)")) { SelectedObject.Slider_Changed(newValue); } else { return; } } }