【剧情】剧情黑屏点击添加
parent
1ef1a93a20
commit
5ae7c127ad
|
|
@ -59,7 +59,7 @@ MonoBehaviour:
|
|||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ namespace Gameplay.Level
|
|||
|
||||
private async void _EnterStorySettle(ListItem listItem)
|
||||
{
|
||||
await ShowTransitionMgr.Instance.EnterBlackTransition();
|
||||
await ShowTransitionMgr.Instance.EnterBlackTransition(true);
|
||||
await ShowTransitionMgr.Instance.EnterBlack();
|
||||
await UniTask.Delay(250);
|
||||
CommonUtils.CaptureScreenshot();
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ namespace Gameplay.Level
|
|||
CommonUtils.CaptureScreenshot();
|
||||
|
||||
//播结算动画
|
||||
await ShowTransitionMgr.Instance.EnterBlackTransition();
|
||||
await ShowTransitionMgr.Instance.EnterBlackTransition(true);
|
||||
await ShowTransitionMgr.Instance.EnterBlack();
|
||||
await UniTask.Delay(250);
|
||||
//播放过程
|
||||
|
|
@ -49,7 +49,7 @@ namespace Gameplay.Level
|
|||
|
||||
await UniTask.Delay(7500);
|
||||
//卸载结算场景,进入结算界面
|
||||
await ShowTransitionMgr.Instance.EnterBlackTransition();
|
||||
await ShowTransitionMgr.Instance.EnterBlackTransition(true);
|
||||
await ShowTransitionMgr.Instance.EnterBlack();
|
||||
await UniTask.Delay(250);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@ public class ShowTransitionMgr: Singlenton<ShowTransitionMgr>
|
|||
{
|
||||
private UI_TransitionController _curUIWindow;
|
||||
private bool _isInTransition;
|
||||
|
||||
private bool _isField;
|
||||
|
||||
public bool IsField => _isField;
|
||||
private async UniTask _OpenUITransition(UI_TransitionController.ShowType showType)
|
||||
{
|
||||
_curUIWindow = await UI_TransitionController.Open(showType) as UI_TransitionController;
|
||||
|
|
@ -26,14 +28,16 @@ public class ShowTransitionMgr: Singlenton<ShowTransitionMgr>
|
|||
/// <summary>
|
||||
/// 进入过度阶段
|
||||
/// </summary>
|
||||
public async UniTask EnterBlackTransition()
|
||||
public async UniTask EnterBlackTransition(bool isField = false)
|
||||
{
|
||||
_isField = isField;
|
||||
await _OpenUITransition(UI_TransitionController.ShowType.BlackOnly);
|
||||
_isInTransition = true;
|
||||
}
|
||||
|
||||
public async UniTask EnterWhiteTransition()
|
||||
public async UniTask EnterWhiteTransition(bool isField = false)
|
||||
{
|
||||
_isField = isField;
|
||||
await _OpenUITransition(UI_TransitionController.ShowType.BlackOnly);
|
||||
_isInTransition = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ public class UIPassGameController : UIWindow
|
|||
else
|
||||
Text_CharacterID.gameObject.IsScaleShow(true);
|
||||
|
||||
Text_CharacterLV.text = "LV:" + playerLv;
|
||||
Text_CharacterLV.text = "LV." + playerLv;
|
||||
|
||||
//var actorCfg = ActorLevelTableHelper.Instance.Get((int)playerLv);
|
||||
var max = ActorLevelTableHelper.Instance.GetLevelUpExp((int)playerLv);//actorCfg.Exp;
|
||||
|
|
@ -476,7 +476,7 @@ public class UIPassGameController : UIWindow
|
|||
var cfg = TableManager.Instance.Tables.CharacterLevelExp.GetOrDefault((int)charDataInfo.Level);
|
||||
var process = (float)cur / cfg.EXP;
|
||||
imgExpProcess.fillAmount = process;
|
||||
txtLv.text = "LV" + charDataInfo.Level;
|
||||
txtLv.text = "LV " + charDataInfo.Level;
|
||||
}
|
||||
|
||||
var imgLikely = CommonUtils.GetComponent<Image>(item, "ImageFavorate");
|
||||
|
|
|
|||
|
|
@ -63,9 +63,12 @@ public class UI_TransitionController : UIWindow
|
|||
{
|
||||
//bind UI GameObj
|
||||
UI_TransitionBinder.GetComponents(this);
|
||||
|
||||
|
||||
_goBlack = FindObj("Mask");
|
||||
_goTitle = FindObj("Content");
|
||||
Image_Mask.raycastTarget = ShowTransitionMgr.Instance.IsField;
|
||||
Image_MaskWhite.raycastTarget = ShowTransitionMgr.Instance.IsField;
|
||||
}
|
||||
|
||||
//invoke when open window
|
||||
|
|
|
|||
Loading…
Reference in New Issue