【Bug】修改
parent
c9a5a072a0
commit
9840b222ed
|
@ -903,7 +903,7 @@ MonoBehaviour:
|
|||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 2e81fc769e698417b8c13280d690cd9f, type: 3}
|
||||
m_Sprite: {fileID: 21300000, guid: 1852525e762024990811d841c56436c9, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 8.6 KiB |
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2e81fc769e698417b8c13280d690cd9f
|
||||
guid: 1852525e762024990811d841c56436c9
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
|
|
|
@ -179,7 +179,7 @@ public class GuideMananger : Singlenton<GuideMananger>, IInitable
|
|||
BuildManager.Instance.SetBuildUserInfo(_curGuideGroup);
|
||||
_curGuideGroup = nextGroup;
|
||||
IsGuiding = false;
|
||||
LevelSelectManager.Instance.SaveNewPassLevel(PassLevelID);
|
||||
LevelSelectManager.Instance.SaveNewPassLevel(PassLevelID, false);
|
||||
SetActiveGuideUI(false, true);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace Gameplay.Manager
|
|||
CurPassLevelIndex = int.Parse(CurPassLevel.Substring("level".Length));
|
||||
}
|
||||
|
||||
public void SaveNewPassLevel(string levelID)
|
||||
public void SaveNewPassLevel(string levelID, bool flyCoin = true)
|
||||
{
|
||||
if (GuideMananger.Instance.IsGuiding)
|
||||
{
|
||||
|
@ -74,7 +74,7 @@ namespace Gameplay.Manager
|
|||
StorageManager.Instance.SyncForce = true;
|
||||
StorageManager.Instance.SyncRemoteForce = true;
|
||||
BIManager.Instance.TrackEvent(cfg.BI.Event.main_unlock_level, (id + 1).ToString());
|
||||
LevelManager.Instance.CanGfxCoin = true;
|
||||
LevelManager.Instance.CanGfxCoin = flyCoin;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ public class UILosePanelController : UIWindow
|
|||
|
||||
private void BackToMainPanel()
|
||||
{
|
||||
CloseWindow();
|
||||
CloseWindow(true);
|
||||
UIManager.Instance.CloseWindow(UIConstants.UILevelPanel, true);
|
||||
GameStateManager.Instance.ChangeState(new GameStateStart());
|
||||
BIManager.Instance.TrackEventLevel(cfg.BI.Event.level_back_home, BIManager.Reason.ClickOnLosePanel.ToString());
|
||||
|
@ -43,14 +43,14 @@ public class UILosePanelController : UIWindow
|
|||
|
||||
private void TryAgain()
|
||||
{
|
||||
CloseWindow();
|
||||
CloseWindow(true);
|
||||
GameStateManager.Instance.ChangeState(new LevelState(LevelManager.Instance.CurrentLevel.ID));
|
||||
BIManager.Instance.TrackEventLevel(cfg.BI.Event.level_retry, BIManager.Reason.ClickOnLosePanel.ToString());
|
||||
}
|
||||
|
||||
private void SkipLevel()
|
||||
{
|
||||
CloseWindow();
|
||||
CloseWindow(true);
|
||||
BIManager.Instance.TrackEventLevel(cfg.BI.Event.level_skip);
|
||||
EventManager.Instance.Send(EventManager.EventName.LevelGameWin);
|
||||
}
|
||||
|
@ -60,10 +60,10 @@ public class UILosePanelController : UIWindow
|
|||
LevelManager.Instance.WatchADGetTime(() => { CloseWindow(); }, ADFailCallBack);
|
||||
}
|
||||
|
||||
private void ADFailCallBack()
|
||||
private async void ADFailCallBack()
|
||||
{
|
||||
BIManager.Instance.TrackEventLevel(Event.level_ad_show_fail, "102");
|
||||
BIManager.Instance.TrackEventLevelOnce(EventFirst.fte_level_ad_show_fail, "102");
|
||||
UIManager.Instance.OpenWindow(UIConstants.UITips, "Tip_AD_NotReady", () => { });
|
||||
await UIManager.Instance.OpenWindow(UIConstants.UITips, "Tip_AD_NotReady", () => { });
|
||||
}
|
||||
}
|
|
@ -73,7 +73,7 @@ public class UIWinPanelController : UIWindow
|
|||
{
|
||||
BIManager.Instance.TrackEventLevel(cfg.BI.Event.level_back_home,
|
||||
BIManager.Reason.ClickOnWinPanel.ToString());
|
||||
CloseWindow();
|
||||
CloseWindow(true);
|
||||
UIManager.Instance.CloseWindow(UIConstants.UILevelPanel, true);
|
||||
GameStateManager.Instance.ChangeState(new GameStateStart());
|
||||
EventManager.Instance.Send(EventManager.EventName.StartBackToMain);
|
||||
|
@ -91,7 +91,7 @@ public class UIWinPanelController : UIWindow
|
|||
|
||||
private async void NextLevel()
|
||||
{
|
||||
CloseWindow();
|
||||
CloseWindow(true);
|
||||
BIManager.Instance.TrackEventLevel(cfg.BI.Event.level_next_level);
|
||||
UIManager.Instance.CloseWindow(UIConstants.UIPausePanel);
|
||||
var nextLevelID = LevelManager.Instance.CurrentLevel.GetLevelIndex() + 1;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using DG.Tweening;
|
||||
using System.Collections;
|
||||
|
@ -53,10 +54,27 @@ public class CoinEffect : MonoBehaviour
|
|||
|
||||
private void Update()
|
||||
{
|
||||
if (LevelManager.Instance.CanGfxCoin)
|
||||
if (LevelManager.Instance.CanGfxCoin && !GuideMananger.Instance.IsGuiding)
|
||||
{
|
||||
DestroyCoinsParent();
|
||||
LevelManager.Instance.CanGfxCoin = false;
|
||||
CoinEffectShow();
|
||||
}
|
||||
}
|
||||
|
||||
private void DestroyCoinsParent()
|
||||
{
|
||||
if (targetPos)
|
||||
{
|
||||
foreach (Transform obj in targetPos)
|
||||
{
|
||||
Destroy(obj.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
DestroyCoinsParent();
|
||||
}
|
||||
}
|
|
@ -287,7 +287,6 @@ namespace Framework.Manager
|
|||
if (string.IsNullOrEmpty(_userBuildInfo.CurBuildId))
|
||||
{
|
||||
_userBuildInfo.CurBuildId = TableManager.Instance.Tables.BuildConfig.DataList[0].ID;
|
||||
DebugUtil.LogError("无存盘信息, 读默认表:{0}", _userBuildInfo.CurBuildId);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -295,7 +294,6 @@ namespace Framework.Manager
|
|||
{
|
||||
if (_isInit && !ChangeBuildSceneID) return;
|
||||
|
||||
DebugUtil.LogError("当前建造ID:{0}", buildData.buildID);
|
||||
BuildInGame = inGame;
|
||||
_curBuildData = buildData;
|
||||
_nodeInfos = new Dictionary<string, NodeInfo>();
|
||||
|
@ -385,7 +383,6 @@ namespace Framework.Manager
|
|||
}
|
||||
|
||||
_userBuildInfo.AllChooseNodeInfo[curBuildID].ChooseNodeInfo.TryAdd(nodeInfo.Key, "");
|
||||
DebugUtil.LogError("当前场景:{0},添加了信息节点:{1},选项:{2}", curBuildID, nodeInfo.Key, "");
|
||||
}
|
||||
|
||||
_curBuildInfo = _userBuildInfo.AllChooseNodeInfo[curBuildID];
|
||||
|
|
Loading…
Reference in New Issue