【BI】参数Bug
parent
998e690477
commit
87bcc543c8
|
@ -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<cfg.BI.EventFirst> EventList { get; set; }
|
||||
|
|
|
@ -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");
|
||||
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<string, object>
|
||||
{
|
||||
{ "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<string, object>
|
||||
{
|
||||
{ "LevelID", LevelManager.Instance.CurrentLevel.ID },
|
||||
{ "ElapsedTime", ((int)LevelManager.Instance.ElapsedTime).ToString() },
|
||||
{ "ElapsedStep", LevelManager.Instance.Step.ToString() }
|
||||
};
|
||||
|
||||
if (!string.IsNullOrEmpty(param1))
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue