diff --git a/Forest/Assets/Scripts/Framework/BI/BI.cs b/Forest/Assets/Scripts/Framework/BI/BI.cs index 88f6f66..840bb03 100644 --- a/Forest/Assets/Scripts/Framework/BI/BI.cs +++ b/Forest/Assets/Scripts/Framework/BI/BI.cs @@ -3,25 +3,6 @@ using UnityEngine.Scripting; namespace Framework.BI { - [Preserve] - public class BILevel - { - public string LevelID { get; set; } - public int ElapsedTime { get; set; } - public int ElapsedStep { get; set; } - - public BILevel() - { - } - - public BILevel(string levelID, int elapsedTime, int elapsedStep) - { - this.LevelID = levelID; - this.ElapsedTime = elapsedTime; - this.ElapsedStep = elapsedStep; - } - } - public class StorageEvent { public List EventList { get; set; } diff --git a/Forest/Assets/Scripts/Framework/BI/BIManager.cs b/Forest/Assets/Scripts/Framework/BI/BIManager.cs index 792da1e..adaeeda 100644 --- a/Forest/Assets/Scripts/Framework/BI/BIManager.cs +++ b/Forest/Assets/Scripts/Framework/BI/BIManager.cs @@ -19,7 +19,6 @@ namespace Framework.BI ByCash, } - public BILevel CurBiLevel; public StorageEvent StorageEvent; public string ThirdID @@ -47,7 +46,6 @@ namespace Framework.BI _biService?.SetUser(DeviceHelper.GetDeviceId()); _biService?.SetUserProperty("platform", DeviceHelper.GetPlatformString()); - CurBiLevel = new BILevel(); StorageEvent = StorageManager.Instance.GetStorage("StorageEvent"); StorageEvent ??= new StorageEvent(); @@ -169,10 +167,12 @@ namespace Framework.BI return; try { - CurBiLevel.LevelID = LevelManager.Instance.CurrentLevel.ID; - CurBiLevel.ElapsedTime = (int)LevelManager.Instance.ElapsedTime; - CurBiLevel.ElapsedStep = LevelManager.Instance.Step; - var levelParam = Utils.PropertiesNameValue2ObjectDictionary(CurBiLevel); + var levelParam = new Dictionary + { + { "LevelID", LevelManager.Instance.CurrentLevel.ID }, + { "ElapsedTime", ((int)LevelManager.Instance.ElapsedTime).ToString() }, + { "ElapsedStep", LevelManager.Instance.Step.ToString() } + }; if (!string.IsNullOrEmpty(param1)) { @@ -210,10 +210,12 @@ namespace Framework.BI } else { - CurBiLevel.LevelID = LevelManager.Instance.CurrentLevel.ID; - CurBiLevel.ElapsedTime = (int)LevelManager.Instance.ElapsedTime; - CurBiLevel.ElapsedStep = LevelManager.Instance.Step; - var levelParam = Utils.PropertiesNameValue2ObjectDictionary(CurBiLevel); + var levelParam = new Dictionary + { + { "LevelID", LevelManager.Instance.CurrentLevel.ID }, + { "ElapsedTime", ((int)LevelManager.Instance.ElapsedTime).ToString() }, + { "ElapsedStep", LevelManager.Instance.Step.ToString() } + }; if (!string.IsNullOrEmpty(param1)) { diff --git a/Forest/Assets/Scripts/Gameplay/Level/PlankManager.cs b/Forest/Assets/Scripts/Gameplay/Level/PlankManager.cs index 932f205..14cea4a 100644 --- a/Forest/Assets/Scripts/Gameplay/Level/PlankManager.cs +++ b/Forest/Assets/Scripts/Gameplay/Level/PlankManager.cs @@ -240,7 +240,7 @@ namespace Gameplay.Level if (hjDic.TryGetValue(thumbtackRig, out var hj2D)) { LevelManager.Instance.CurUndoState.RemoveH2DjPlanks.Add(plank); - DebugUtil.Log("{0}木板移除:{1}上的HJ2D", plank.Obj.name, thumbtack.Obj.name); + //DebugUtil.Log("{0}木板移除:{1}上的HJ2D", plank.Obj.name, thumbtack.Obj.name); Object.DestroyImmediate(hj2D); hjDic.Remove(thumbtackRig); if (hjDic.Count <= 0)