示例#1
0
 private void CheckType()
 {
     if (_typeData == null || !_typeData.isValid())
     {
         _typeData = ConnectionTypes.GetTypeData(typeID);
     }
     if (_typeData == null || !_typeData.isValid())
     {
         ConnectionTypes.FetchTypes();
         _typeData = ConnectionTypes.GetTypeData(typeID);
         if (_typeData == null || !_typeData.isValid())
         {
             throw new UnityException("Could not find type " + typeID + "!");
         }
     }
 }
示例#2
0
 private void CheckType()
 {
     if (typeData == null || !typeData.isValid())
     {
         typeData = ConnectionTypes.GetTypeData(type, true);
     }
 }