123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 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;
- }
- }
- }
|