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