using UnityEngine; /// /// 全局变量储存 /// public static class GlobalVariable { /// /// 车辆举臂速度 /// public static float TruckArmSpeed = 1f; /// /// 当前楼层信息 /// public static FloorData CurrentFloor; public const string ContentPath = "Scroll View/Viewport/Content"; public const string CarTag = "Car"; public static bool InfoActive; public static string TeamName = "单位名称"; public static int ReplaySpeed = 1; public static bool ToolsOn = false;//工具栏是否显示 public static bool FloorsOn = true;//楼层信息是否显示 public static float FloorsScrollBarValue = 0; /// /// 初始化全局变量 /// public static void InitGlobalVariable() { TruckArmSpeed = 1f; CurrentFloor = new FloorData(); } }