public void ReloadChange() { selectedGraph = 0; bcg = null; BocsCyclesNodeManager.Reset(); if (Selection.activeGameObject != null) { bcg = Selection.activeGameObject.GetComponent <BocsCyclesMaterial>(); if (bcg != null) { graphType = GraphType.Material; LoadNodes(); return; } bcg = Selection.activeGameObject.GetComponent <BocsCyclesLight>(); if (bcg != null) { graphType = GraphType.Light; LoadNodes(); return; } bcg = Selection.activeGameObject.GetComponent <BocsCyclesCamera>(); if (bcg != null) { graphType = GraphType.World; LoadNodes(); return; } } }