You've already forked taptap2024_GJ_chidouren
优化代码
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Game.FsmNode
|
||||
// GameEventDefine.GlobalRunaway.SendMessage (10);
|
||||
MapContent.Instance.IsPause = true;
|
||||
AudioManager.Instance.PlaySoundEffect (SeAudio.OverGame_Success);
|
||||
if (RoomManager.Instance.PartIndex < 3)
|
||||
if (RoomManager.Instance.PartIndex <= 3)
|
||||
{
|
||||
await UniTask.Delay (1500);
|
||||
UIManager.Instance.OpenView (UIPanel.SuccessPanel , new IC_ViewData (RoomManager.Instance.PartIndex));
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace Game
|
||||
if (partIndex == 3)
|
||||
{
|
||||
//额外加载boss场景
|
||||
var bossScene = AssetManager.Instance.LoadAsset<GameObject>("");
|
||||
var bossScene = AssetManager.Instance.LoadAsset<GameObject>("AutoSource/CGScene/BossScene.prefab");
|
||||
var gameObject = Object.Instantiate (bossScene , MapContent.Instance.ScenePart.SuccessProp.transform.position , Quaternion.identity);
|
||||
this._BossSceneDirector = gameObject.GetComponent<PlayableDirector> ();
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ Material:
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- Vector1_c9f2135c9d254951b22c018d295f8558: 0.003
|
||||
- _blurOffset: 0.013190931
|
||||
- _blurOffset: 0.011229792
|
||||
m_Colors: []
|
||||
m_BuildTextureStacks: []
|
||||
--- !u!114 &268278646524644520
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace Views{
|
||||
|
||||
public override async void OnOpenView(IC_ViewData parameters)
|
||||
{
|
||||
MapContent.Instance.PlayerEntity.gameObject.SetActive (false);
|
||||
this.nextBtn.gameObject.SetActive (false);
|
||||
var index = parameters.GetValue<int> ();
|
||||
this.lastFragment.SetActive (false);
|
||||
@@ -65,22 +66,27 @@ namespace Views{
|
||||
{
|
||||
this.nextBtn.onClick.AddListener (() =>
|
||||
{
|
||||
UIManager.Instance.OpenLoading (() =>
|
||||
if (RoomManager.Instance.PartIndex < 3)
|
||||
{
|
||||
UIManager.Instance.OpenLoading (() =>
|
||||
{
|
||||
this.ViewConnector.CloseView ();
|
||||
{
|
||||
Destroy (MapContent.Instance.ScenePart.gameObject);
|
||||
MapContent.Instance.ScenePart = null;
|
||||
RoomManager.Instance.PartIndex++;
|
||||
GameEventDefine.ChangeGameFsm.SendMessage (GameState.StartGame);
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ViewConnector.CloseView ();
|
||||
if (RoomManager.Instance.PartIndex < 3)
|
||||
{
|
||||
Destroy (MapContent.Instance.ScenePart.gameObject);
|
||||
MapContent.Instance.ScenePart = null;
|
||||
RoomManager.Instance.PartIndex++;
|
||||
GameEventDefine.ChangeGameFsm.SendMessage (GameState.StartGame);
|
||||
}
|
||||
else
|
||||
{
|
||||
//播放结尾gc动画
|
||||
RoomManager.Instance._BossSceneDirector.Play();
|
||||
}
|
||||
});
|
||||
Destroy (MapContent.Instance.ScenePart.gameObject);
|
||||
MapContent.Instance.ScenePart = null;
|
||||
//播放结尾gc动画
|
||||
RoomManager.Instance._BossSceneDirector.Play();
|
||||
}
|
||||
});
|
||||
}
|
||||
// #if UNITY_EDITOR
|
||||
|
||||
Reference in New Issue
Block a user