public void SetLockHUDByCount(int count) { foreach (var item in items) { if (item.locks.Count == count) { item.gameObject.SetActive(true); activeItem = item; } } reqCount = count; info.text = string.Format("{0}/{1}", 0, count); gameObject.SetActive(count > 0); }
public static void Log(LockInfoItem item) { try { if (!ConfigHelper.AllowLockStats) { return; } lock (_cache) { _cache.Add(item); } } catch (Exception ex) { LoggerCQ.LogError(ex); } }