static public int UpdateEndTime(IntPtr l) { try { LBoot.AssetBundleRef self = (LBoot.AssetBundleRef)checkSelf(l); self.UpdateEndTime(); return(0); } catch (Exception e) { return(error(l, e)); } }
public static bool TryGetRefreshedBundleRef(string keyName, int ttl, out AssetBundleRef abRef) { if (dictAssetBundleRefs.TryGetValue(keyName, out abRef)) { if (ttl < 0) { abRef.SecondsToLive = ttl; } else { abRef.UpdateEndTime(); } return(true); } return(false); }