unity_art_puzzle_playable_luna/5.5.0/engine/luna/script3.js

1 line
9.0 KiB
JavaScript
Raw Normal View History

2023-12-21 08:46:57 +00:00
function getLanguage(e){let n=navigator.language.toLowerCase();switch(n){case"zh-hk":case"zh-tw":return e.ChineseTraditional;case"zh-sg":case"zh-cn":return e.ChineseSimplified}switch(n=n.split("-")[0],n){case"af":return e.Afrikaans;case"ar":return e.Arabic;case"eu":return e.Basque;case"be":return e.Belarusian;case"bg":return e.Bulgarian;case"ca":return e.Catalan;case"zh":return e.Chinese;case"cs":return e.Czech;case"da":return e.Danish;case"nl":return e.Dutch;case"en":return e.English;case"et":return e.Estonian;case"fo":return e.Faroese;case"fi":return e.Finnish;case"fr":return e.French;case"de":return e.German;case"el":return e.Greek;case"he":return e.Hebrew;case"is":return e.Icelandic;case"id":return e.Indonesian;case"it":return e.Italian;case"ja":return e.Japanese;case"ko":return e.Korean;case"lv":return e.Latvian;case"lt":return e.Lithuanian;case"no":return e.Norwegian;case"pl":return e.Polish;case"pt":return e.Portuguese;case"ro":return e.Romanian;case"ru":return e.Russian;case"sh":return e.SerboCroatian;case"sk":return e.Slovak;case"sl":return e.Slovenian;case"es":return e.Spanish;case"sv":return e.Swedish;case"th":return e.Thai;case"tr":return e.Turkish;case"uk":return e.Ukrainian;case"vi":return e.Vietnamese;case"zn":return e.ChineseSimplified;case"hu":return e.Hungarian;default:return e.Unknown}}function getBuildPlatform(e){switch(window.$environment.targetPlatform){case"develop":return e.Develop;case"facebook":return e.Facebook;case"facebook-instant-games":return e.FacebookInstantGames;case"aarki":return e.Aarki;case"snap":return e.Snapchat;case"adcolony":return e.AdColony;case"applovin":return e.AppLovin;case"appreciate":return e.Appreciate;case"ironsource":return e.IronSource;case"google":return e.GoogleAds;case"google-manager":return e.GoogleAdManager;case"liftoff":return e.Liftoff;case"mintegral":return e.Mintegral;case"mraid-hosted":return e.MraidHosted;case"mraid":return e.Mraid;case"tencent":return e.Tencent;case"tiktok":return e.TikTok;case"unityads":return e.UnityAds;case"vungle":return e.Vungle;default:return e.Unknown}}Luna.Unity.Playable.GetPreferredLanguage=function(){return navigator.language},Luna.Unity.Playable.GetPreferredLanguages=function(){return navigator.languages},UnityEngine.Application.systemLanguage=getLanguage(UnityEngine.SystemLanguage),Luna.Unity.Playable.Platform=getBuildPlatform(Luna.Unity.BuildPlatforms),UnityEngine.Mathf.Max=Math.max,UnityEngine.Mathf.Min=Math.min,function(){function e(e,n){Object.defineProperty(e.prototype,"unityClass",{get:()=>n(),configurable:!0})}e(pc.ScreenComponent,(()=>UnityEngine.Canvas)),e(pc.CanvasRendererComponent,(()=>UnityEngine.CanvasRenderer)),e(pc.CameraComponent,(()=>UnityEngine.Camera)),e(pc.LightComponent,(()=>UnityEngine.Light)),e(pc.AnimationComponent,(()=>UnityEngine.Animation)),e(pc.AnimatorComponent,(()=>UnityEngine.Animator)),e(pc.VideoPlayerComponent,(()=>UnityEngine.Video.VideoPlayer)),e(pc.ReflectionProbeComponent,(()=>UnityEngine.ReflectionProbe)),e(pc.ParticleSystemComponent,(()=>UnityEngine.ParticleSystem)),e(pc.AudioSourceUnityComponent,(()=>UnityEngine.AudioSource)),e(pc.MeshFilterComponent,(()=>UnityEngine.MeshFilter)),e(pc.Rigidbody2DComponent,(()=>UnityEngine.Rigidbody2D)),e(pc.SpringJoint2DComponent,(()=>UnityEngine.SpringJoint2D)),e(pc.DistanceJoint2DComponent,(()=>UnityEngine.DistanceJoint2D)),e(pc.FixedJoint2DComponent,(()=>UnityEngine.FixedJoint2D)),e(pc.HingeJoint2DComponent,(()=>UnityEngine.HingeJoint2D)),e(pc.WheelJoint2DComponent,(()=>UnityEngine.WheelJoint2D)),e(pc.FrictionJoint2DComponent,(()=>UnityEngine.FrictionJoint2D)),e(pc.RelativeJoint2DComponent,(()=>UnityEngine.RelativeJoint2D)),e(pc.SliderJoint2DComponent,(()=>UnityEngine.SliderJoint2D)),e(pc.TargetJoint2DComponent,(()=>UnityEngine.TargetJoint2D)),e(pc.BoxCollider2DComponent,(()=>UnityEngine.BoxCollider2D)),e(pc.CircleCollider2DComponent,(()=>UnityEngine.CircleCollider2D)),e(pc.CapsuleCollider2DComponent,(()=>UnityEngine.CapsuleCollider2D)),e(pc.EdgeCollider2DComponent,(()=>UnityEngine.EdgeCollider2D)),e(pc.PolygonCollider2DComponent,(()=>UnityEngine.Polyg