public Transform GetTransformFromName(string objName) { if (DictObjName == null) { return(null); } return(DictObjName.TryGetValue(objName, out var gameObject) ? gameObject.transform : null); }
public GameObject GetObjectFromName(string objName) { if (DictObjName == null) { return(null); } DictObjName.TryGetValue(objName, out var result); return(result); }