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