using System.Collections; using System.Collections.Generic; using UnityEngine; public class NewUnLockFunctionEffectRecorder { static List newUnLockFunctions = new List(); static NewUnLockFunctionEffectRecorder() { DTC0102_tagCDBPlayer.switchAccountEvent += OnSwitchAccount; } public static void Record(int _functionId) { if (!newUnLockFunctions.Contains(_functionId)) { newUnLockFunctions.Add(_functionId); } } public static void Remove(int _functionId) { if (newUnLockFunctions.Contains(_functionId)) { newUnLockFunctions.Remove(_functionId); } } public static bool Contain(int _functionId) { return newUnLockFunctions.Contains(_functionId); } private static void OnSwitchAccount() { newUnLockFunctions.Clear(); } }