Ejemplo n.º 1
0
 public static bool HasNoActionTargetsAttribute(Type actionType)
 {
     return(CustomAttributeHelpers.HasAttribute <NoActionTargetsAttribute>(actionType));
 }
Ejemplo n.º 2
0
 public static bool HasAttribute <T>(FieldInfo field) where T : Attribute
 {
     return(CustomAttributeHelpers.HasAttribute <T>(field.GetCustomAttributes(true)));
 }
Ejemplo n.º 3
0
 private static void FindGameObjectParameters(Type actionType, FieldInfo field)
 {
     if ((field.get_FieldType() == typeof(SkillOwnerDefault) || field.get_FieldType() == typeof(SkillGameObject) || field.get_FieldType() == typeof(GameObject)) && !CustomAttributeHelpers.HasAttribute <CheckForComponentAttribute>(field))
     {
         ActionTargets.AddActionTarget(actionType, new ActionTarget(typeof(GameObject), field.get_Name(), false));
     }
 }
Ejemplo n.º 4
0
 public static bool HasAttribute <T>(Type type) where T : Attribute
 {
     return(CustomAttributeHelpers.HasAttribute <T>(type.GetCustomAttributes(true)));
 }