yyl
2025-05-16 f4c97339a01fdd75d8b862be572eefe66bd51d5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using UnityEngine;
using System.Collections;
 
public class Constants
{
    public static readonly string baseURL =
#if UNITY_ANDROID
    "jar:file://" + Application.dataPath + "!/assets/";
#elif UNITY_IPHONE
    Application.dataPath + "/Raw/";
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR
    "file://" + Application.dataPath + "/StreamingAssets/";
#else
        string.Empty;
#endif
 
    public enum E_LoadFrom
    {
        Local,
        AssetBundle,
    }
 
    public static readonly Vector3 MainCity_Stage_LeftDown = new Vector3(5, -5.4f, 0);
    public static readonly Vector3 MainCity_Stage_RightUp = new Vector3(41, 31, 0);
 
    public const float GRAVITY_RATE = 10f;   //为了易于计算,也好理解,定义为10
 
    public const char STR_TAB = '\t';
 
    public static E_LoadFrom LoadFromType = E_LoadFrom.Local;
 
    public const int PriorityStand = 51;
    public const int PriorityMove = 50;
 
    public const float F_BETA = 0.01f;
    public const float F_GAMMA = 0.001f;
    public const float F_DELTA = 0.0001f;
    public const float F_EPSILON = 0.00001f;
 
    //服务端的大数值通过两个字段表示,大数字位单位为亿
    public const ulong ExpPointValue = 100000000;
 
    public static readonly Vector3 Special_Hide_Position = new Vector3(10000, -10000, 10000);
    public readonly static Vector2 DESIGN_RESOLUTION = new Vector2(1334, 750);
 
    public static int UnUsedRes_Unload_Delay = 300;
 
    // public static AnimationCurveConfig deadAniCurve = BuiltInLoader.LoadScriptableObject<AnimationCurveConfig>("Anim_Curve_DeadFly");
    // public static AnimationCurveConfig hurtAniCurve = BuiltInLoader.LoadScriptableObject<AnimationCurveConfig>("Anim_Curve_HurtFlash");
    // public static AnimationCurveConfig zoomAniCurve = BuiltInLoader.LoadScriptableObject<AnimationCurveConfig>("Anim_Curve_Zoom");
    // public static AnimationCurveConfig shakeAniCurve = BuiltInLoader.LoadScriptableObject<AnimationCurveConfig>("Anim_Curve_Shake");
}