【BI】参数Bug
parent
998e690477
commit
87bcc543c8
|
@ -3,25 +3,6 @@ using UnityEngine.Scripting;
|
||||||
|
|
||||||
namespace Framework.BI
|
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 class StorageEvent
|
||||||
{
|
{
|
||||||
public List<cfg.BI.EventFirst> EventList { get; set; }
|
public List<cfg.BI.EventFirst> EventList { get; set; }
|
||||||
|
|
|
@ -19,7 +19,6 @@ namespace Framework.BI
|
||||||
ByCash,
|
ByCash,
|
||||||
}
|
}
|
||||||
|
|
||||||
public BILevel CurBiLevel;
|
|
||||||
public StorageEvent StorageEvent;
|
public StorageEvent StorageEvent;
|
||||||
|
|
||||||
public string ThirdID
|
public string ThirdID
|
||||||
|
@ -47,7 +46,6 @@ namespace Framework.BI
|
||||||
_biService?.SetUser(DeviceHelper.GetDeviceId());
|
_biService?.SetUser(DeviceHelper.GetDeviceId());
|
||||||
_biService?.SetUserProperty("platform", DeviceHelper.GetPlatformString());
|
_biService?.SetUserProperty("platform", DeviceHelper.GetPlatformString());
|
||||||
|
|
||||||
CurBiLevel = new BILevel();
|
|
||||||
StorageEvent = StorageManager.Instance.GetStorage<StorageEvent>("StorageEvent");
|
StorageEvent = StorageManager.Instance.GetStorage<StorageEvent>("StorageEvent");
|
||||||
StorageEvent ??= new StorageEvent();
|
StorageEvent ??= new StorageEvent();
|
||||||
|
|
||||||
|
@ -169,10 +167,12 @@ namespace Framework.BI
|
||||||
return;
|
return;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
CurBiLevel.LevelID = LevelManager.Instance.CurrentLevel.ID;
|
var levelParam = new Dictionary<string, object>
|
||||||
CurBiLevel.ElapsedTime = (int)LevelManager.Instance.ElapsedTime;
|
{
|
||||||
CurBiLevel.ElapsedStep = LevelManager.Instance.Step;
|
{ "LevelID", LevelManager.Instance.CurrentLevel.ID },
|
||||||
var levelParam = Utils.PropertiesNameValue2ObjectDictionary(CurBiLevel);
|
{ "ElapsedTime", ((int)LevelManager.Instance.ElapsedTime).ToString() },
|
||||||
|
{ "ElapsedStep", LevelManager.Instance.Step.ToString() }
|
||||||
|
};
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(param1))
|
if (!string.IsNullOrEmpty(param1))
|
||||||
{
|
{
|
||||||
|
@ -210,10 +210,12 @@ namespace Framework.BI
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CurBiLevel.LevelID = LevelManager.Instance.CurrentLevel.ID;
|
var levelParam = new Dictionary<string, object>
|
||||||
CurBiLevel.ElapsedTime = (int)LevelManager.Instance.ElapsedTime;
|
{
|
||||||
CurBiLevel.ElapsedStep = LevelManager.Instance.Step;
|
{ "LevelID", LevelManager.Instance.CurrentLevel.ID },
|
||||||
var levelParam = Utils.PropertiesNameValue2ObjectDictionary(CurBiLevel);
|
{ "ElapsedTime", ((int)LevelManager.Instance.ElapsedTime).ToString() },
|
||||||
|
{ "ElapsedStep", LevelManager.Instance.Step.ToString() }
|
||||||
|
};
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(param1))
|
if (!string.IsNullOrEmpty(param1))
|
||||||
{
|
{
|
||||||
|
|
|
@ -240,7 +240,7 @@ namespace Gameplay.Level
|
||||||
if (hjDic.TryGetValue(thumbtackRig, out var hj2D))
|
if (hjDic.TryGetValue(thumbtackRig, out var hj2D))
|
||||||
{
|
{
|
||||||
LevelManager.Instance.CurUndoState.RemoveH2DjPlanks.Add(plank);
|
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);
|
Object.DestroyImmediate(hj2D);
|
||||||
hjDic.Remove(thumbtackRig);
|
hjDic.Remove(thumbtackRig);
|
||||||
if (hjDic.Count <= 0)
|
if (hjDic.Count <= 0)
|
||||||
|
|
Loading…
Reference in New Issue