ball 项目提交

This commit is contained in:
2026-04-20 12:06:34 +08:00
parent 4331ebba60
commit 99145facbd
6052 changed files with 576445 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e7146600e94b62843b388e234c8ce824
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
namespace BallKingdomCrush
{
public static class AnimConst
{
public const float AnimFrameRate = 30;
public const float SecondRateUnit = 1 / AnimFrameRate;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: db177b3a2887ce0498712919fed1ee4f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,55 @@
using UnityEngine;
using System.Collections.Generic;
using SGModule.Common;
namespace BallKingdomCrush
{
public static class AppConst
{
#region Field
#if GAME_RELEASE
public static bool IsEnabledEngineLog = true;
#else
public static bool IsEnabledEngineLog = true;
#endif
public const LogType EnabledFilterLogType =
LogType.Log | LogType.Warning | LogType.Error | LogType.Assert |
LogType.Exception;
public const bool IsRunInBG = true;
public const int SleepTimeoutMode = SleepTimeout.NeverSleep;
public const int AntiAliasing = 0;
public const int HighFrameRate = 60;
public const int LowFrameRate = 45;
public const float HDHighViewScale = 1f;
public const float HDLowViewScale = 0.9f;
public const float PixelsPerUnit = 100f;
public static Vector2Int StandardResolution = new Vector2Int(1080, 1920);
public static Vector2Int UIResolution = new Vector2Int(1080, 1920);
public static bool UseInternalSetting = true;
public static bool IsMultiLangue = true;
public static string CurrMultiLangue = "en";
public static string DefaultLangue = "en";
public static string InternalLangue = "en";
public static string DeviceLangue = "en";
public static List<string> CtrlDisableList = new List<string>();
#endregion
public static bool isPt()
{
if (CurrMultiLangue == "pt") return true;
return false;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5e2daa6b68221ec4f8e0b643de38afd1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,38 @@
using UnityEngine;
namespace BallKingdomCrush
{
public static class AppObjConst
{
public const string FrameGoName = "[ Jarvis ]";
public static GameObject FrameGo;
public const string LauncherGoName = "[Launcher]";
public const string EngineEventSystemGoName = "[EngineEventSystem]";
public static GameObject EngineEventSystemGo;
public const string ApplicationGoName = "[ Application ]";
public static GameObject ApplicationGo;
public const string EngineSingletonGoName = "[EngineSingleton]";
public static GameObject EngineSingletonGo;
public const string MonoManagerGoName = "[MonoManager]";
public static GameObject MonoManagerGo;
public const string DispatcherGoName = "[Dispatcher]";
public static GameObject DispatcherGo;
public const string LoaderGoName = "[Loader]";
public static GameObject LoaderGo;
public const string CameraGoName = "[Camera]";
public static GameObject CameraGo;
public const string UIGoName = "[UI]";
public static GameObject UIGo;
public const string UICacheGoName = "[UICache]";
public static GameObject UICacheGo;
public const string DOTweenGoName = "[DOTween]";
public const string SuperInvokeGoName = "[SuperInvoke]";
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ce9826ccd786f9e46a1fb245b9fe4a04
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,19 @@
namespace BallKingdomCrush
{
public static class AudioConst
{
public const string UIButtonDefault = "ui_ButtonDefault";
public const string DailyBonusCollect = "dailyBonus_collect";
public const string CoinFly = "coinfly";
public const string MainBg = "hall_bgm";
public const string GameBg = "game_bgm";
public const string dissolve = "dissolve";
public const string fail = "fail";
public const string Victoriously = "Victoriously";
public const string MakeupDone = "makupdone";
public const string wheel_spin = "wheel_spin";
public const string game_open = "game_open";
public const string prop_tips = "prop_tips";
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: dbb65f81bcb66ff48abc55f1c1150765
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,17 @@
using UnityEngine;
namespace BallKingdomCrush
{
public static class CameraConst
{
public const int MainDepth = 0;
public const int UICameraDepth = 10;
public const int MainCameraPosValue = 100;
public const int MainCameraZPos = 0;
public const int UICameraPosValue = 10000;
public static Vector3 MainCameraPos = new Vector3(MainCameraPosValue, MainCameraPosValue, MainCameraZPos);
public static Vector3 UICameraPos = new Vector3(UICameraPosValue, UICameraPosValue, MainCameraZPos);
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e2555d38a702f494ca13aaf957846be9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,14 @@
namespace BallKingdomCrush
{
public static class FolderNames
{
public const string SecretName = "SecretAlbums";
public const string AlbumName = "LevelAlbums";
public const string BackgroundName = "Background";
public const string VideoName = "LiveVideos";
public const string VideoCoversName = "LiveVideoCovers";
public const string GameCache = "GameCache";
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3dcaf59800d1f47f3911ed70b751131a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,13 @@
using UnityEngine;
namespace BallKingdomCrush
{
public static class LayerMaskConst
{
public const string Default_Name = "Default";
public const string UI_Name = "UI";
public readonly static int Default = LayerMask.NameToLayer(Default_Name);
public readonly static int UI = LayerMask.NameToLayer(UI_Name);
}
}
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 8f53446f031c27d4eae9f0ff7d3e4565
timeCreated: 1530670154
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
namespace BallKingdomCrush
{
public static class PrefsConst
{
public const bool BoolDefault = false;
public const int IntDefault = 0;
public const int IntTrue = 1;
public const int IntFalse = 2;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6cb940cabfde0ad4c8a849ca893d686c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,21 @@
namespace BallKingdomCrush
{
public static class PrefsKeyConst
{
public const string Application_isHDMode = "Application_isHDMode";
public const string Application_isHFRMode = "Application_isHFRMode";
public const string UIMgr_switchLanguage = "UIMgr_switchLanguage";
public const string AudioMgr_isOpenBGM = "AudioMgr_isOpenBGM";
public const string AudioMgr_isOpenEffect = "AudioMgr_isOpenEffect";
public const string App_isNewInstall = "App_isNewInstall";
public const string JarvisToken = "JarvisToken";
public const string C_ThroughMaxToday = "C_ThroughMaxToday";
public const string C_ThroughPop = "C_ThroughPop";
public const string C_ThroughOnline = "C_ThroughOnline";
public const string C_ThroughHide = "C_ThroughHide";
public const string C_ThroughFly = "C_ThroughFly";
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: bec1a938462feda4eba6b162b9a387e0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,16 @@
using UnityEngine;
namespace BallKingdomCrush
{
public static class ScreenConst
{
public static Vector2 StandardResolution = new(AppConst.StandardResolution.x, AppConst.StandardResolution.y);
public static float StandardWidth => AppConst.StandardResolution.x;
public static float StandardHeight => AppConst.StandardResolution.y;
public static Vector2 RawResolution = new(Screen.width, Screen.height);
public static Vector2 CurrResolution = new(Screen.width, Screen.height);
public static float OrthographicSize_1280H = StandardHeight / 2 / AppConst.PixelsPerUnit;
public static float StandardAspectRatio = StandardHeight / StandardWidth;
public static float CurrAspectRatio = (float)Screen.height / Screen.width;
}
}
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 76e7d3de03bd12a44b19e935ea71697a
timeCreated: 1534935298
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,41 @@
namespace BallKingdomCrush
{
public static class UILayerConst
{
public const string Background = "Background";
public const string Bottom = "Bottom";
public const string Normal = "Normal";
public const string Top = "Top";
public const string FullScreen = "FullScreen";
public const string Popup = "Popup";
public const string Highest = "Highest";
public const string Animation = "Animation";
public const string Tips = "Tips";
public const string Loading = "Loading";
public const string System = "System";
public const string NetworkError = "NetworkError";
public static readonly string[] AllUILayer = {
Background,
Bottom,
Normal,
Top,
FullScreen,
Popup,
Highest,
Animation,
Tips,
Loading,
System,
NetworkError
};
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a1cfef99d74aac943a6872498ec8fb4f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,11 @@
using UnityEngine;
namespace BallKingdomCrush
{
public static class VectorConst
{
public static Vector3 One = Vector3.one;
public static Vector3 PPUOne = One * AppConst.PixelsPerUnit;
public static Vector3 Half = new(0.5f, 0.5f, 0.5f);
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ae89e346ddf1a584382a1deb4b78193a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,13 @@
using UnityEngine;
namespace BallKingdomCrush
{
public static class YieldConst
{
public const float Time10ms = 0.01f;
public const float Time100ms = 0.1f;
public static WaitForEndOfFrame WaitForEndOfFrame = new WaitForEndOfFrame();
public static WaitForSeconds WaitFor100ms = new WaitForSeconds(Time100ms);
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6248774d8e1b69d46a89ad1ea46081ac
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f14f42c47ff29474bb4170a49c3bc8c1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,14 @@
namespace BallKingdomCrush
{
public static partial class CtrlMsg
{
public const string NAME = "CtrlMsg";
public const uint BASE = 0;
private static uint Cursor_BASE = BASE;
public static readonly uint Login_Succeed = ++Cursor_BASE;
public static readonly uint Game_StartReady = ++Cursor_BASE;
public static readonly uint Game_Start = ++Cursor_BASE;
public static readonly uint open_wb = ++Cursor_BASE;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 19bfc133c0819ad4486cceca51c8a2e3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
namespace BallKingdomCrush
{
public static partial class GameMsg
{
public const string NAME = "GameMsg";
public const uint BASE = 0;
private static uint Cursor_BASE = BASE;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7d7b577419d940f468e1a95a9afb1dd9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,9 @@
namespace BallKingdomCrush
{
public static partial class UICtrlMsg
{
public const string NAME = "UICtrlMsg";
public const uint BASE = 0;
private static uint Cursor_BASE = BASE;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fb50862938136744db6a10a950ab4a27
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 05068ae3f93705047a7ad62030047667
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,18 @@
namespace BallKingdomCrush
{
public class ChangeValue<T>
{
public T oldValue;
public T newValue;
public ChangeValue()
{
}
public ChangeValue(T oldValue, T newValue)
{
this.oldValue = oldValue;
this.newValue = newValue;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c53b34a8fdfa77143b24d0660057d5a7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: