using System.Collections; using System.Collections.Generic; using UnityEngine; namespace SC.XR.Unity.Module_PlatformAccount { public class EnumUtil { public static bool IsSelected(APLoginFormsProperties config, APLoginFormsProperties type) { int index = 1 << (int)type; int typeResult = (int)config; if ((typeResult & index) == index) { return true; } return false; } public static bool IsSelected(CustomColorProperties config, CustomColorProperties type) { int index = 1 << (int)type; int typeResult = (int)config; if ((typeResult & index) == index) { return true; } return false; } public static bool IsSelected(InputFieldFormsProperties config, InputFieldFormsProperties type) { int index = 1 << (int)type; int typeResult = (int)config; if ((typeResult & index) == index) { return true; } return false; } } }