Skip to content

Commit

Permalink
Fixed compile error with WSA
Browse files Browse the repository at this point in the history
  • Loading branch information
svermeulen committed Feb 5, 2019
1 parent d42c54b commit dd91e00
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
using ModestTree;
using Zenject.Internal;

#if !NOT_UNITY3D
#endif

namespace Zenject
{
public delegate InjectTypeInfo ZenTypeInfoGetter();
Expand Down Expand Up @@ -79,7 +76,11 @@ static bool ShouldAllowDuringValidationInternal(Type type)
}
#endif

#if UNITY_WSA && ENABLE_DOTNET && !UNITY_EDITOR
return type.GetTypeInfo().GetCustomAttribute<ZenjectAllowDuringValidationAttribute>() != null;
#else
return type.HasAttribute<ZenjectAllowDuringValidationAttribute>();
#endif
}

public static bool HasInfo<T>()
Expand Down

0 comments on commit dd91e00

Please sign in to comment.