bool EditGameObject(GameObjectInfo info) { if (!info.IsEditable()) { return(false); } try { Selectable selectable = info.go.GetComponent <Selectable>(); if (selectable == null) { Debug.LogError("Not Found " + info.go.name); } else { selectable.colors = ColorBlock.defaultColorBlock; } return(true); } catch (System.Exception e) { Debug.LogError(e.Message); return(false); } }
bool EditGameObject(GameObjectInfo info) { if (!info.IsEditable()) return false; try { Selectable selectable = info.go.GetComponent<Selectable>(); if (selectable == null) { Debug.LogError("Not Found " + info.go.name); } else { selectable.colors = ColorBlock.defaultColorBlock; } return true; } catch(System.Exception e ) { Debug.LogError(e.Message); return false; } }