Space Ad Mobile
9.5.1
Space Ad Mobile makes ads easy to add into your mobile game: one unified workflow for LevelPlay, AdMob, Yandex.Ads across banners, interstitials and rewarded.
Loading...
Searching...
No Matches
EnableIfAttribute.cs
1
#if UNITY_EDITOR
2
using
System;
3
using
UnityEngine;
4
5
#pragma warning disable IDE0130
6
namespace
SCG.Editor
7
#pragma warning restore IDE0130
8
{
14
[AttributeUsage(AttributeTargets.Field)]
15
internal
sealed
class
EnableIfAttribute : PropertyAttribute
16
{
18
public
string
MemberName {
get
; }
19
21
public
object
[] ExpectedValues {
get
; }
22
30
public
EnableIfAttribute(
string
memberName, params
object
[] expectedValues)
31
{
32
MemberName = memberName;
33
ExpectedValues = expectedValues ?? Array.Empty<
object
>();
34
}
35
}
36
}
37
#endif