3月问题修复
This commit is contained in:
@@ -52,7 +52,7 @@ namespace AibisDream
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
public bool TrySkipLine()
|
||||
public bool TrySkipLine(bool isForceSkip)
|
||||
{
|
||||
// 无法跳过
|
||||
return true;
|
||||
|
||||
@@ -76,9 +76,9 @@ namespace AibisDream
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
public bool TrySkipLine()
|
||||
public bool TrySkipLine(bool isForceSkip)
|
||||
{
|
||||
if (_skipLineDelay)
|
||||
if (_skipLineDelay && !isForceSkip)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -165,9 +165,9 @@ namespace AibisDream
|
||||
/// false说明对话已经显示完成了,可以跳过
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public virtual bool TrySkipLine()
|
||||
public virtual bool TrySkipLine(bool isForceSkip)
|
||||
{
|
||||
if (_skipLineDelay)
|
||||
if (_skipLineDelay && !isForceSkip)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -203,7 +203,7 @@ namespace AibisDream
|
||||
else
|
||||
{
|
||||
_actorName.transform.parent.localPosition =
|
||||
character.key == "me" ? new Vector3(460, 150, 0) : new Vector3(-630, 150, 0);
|
||||
character.key == "me" ? new Vector3(310, 95, 0) : new Vector3(-458, 95, 0);
|
||||
|
||||
_actorName.transform.parent.gameObject.SetActive(true);
|
||||
_actorName.text = character.GetActorName();
|
||||
|
||||
@@ -68,9 +68,9 @@ namespace AibisDream
|
||||
_dialogViews?.ForEach(item => item.HideDialog());
|
||||
}
|
||||
|
||||
public bool TrySkipLine()
|
||||
public bool TrySkipLine(bool isForceSkip = false)
|
||||
{
|
||||
return _currentView == null || _currentView.TrySkipLine();
|
||||
return _currentView == null || _currentView.TrySkipLine(isForceSkip);
|
||||
}
|
||||
|
||||
public void NextStep()
|
||||
|
||||
@@ -169,9 +169,9 @@ namespace AibisDream
|
||||
_curView.HideDialog();
|
||||
}
|
||||
|
||||
public bool TrySkipLine()
|
||||
public bool TrySkipLine(bool isForceSkip = false)
|
||||
{
|
||||
return _lastShowView != null && _lastShowView.TrySkipLine();
|
||||
return _lastShowView != null && _lastShowView.TrySkipLine(isForceSkip);
|
||||
}
|
||||
|
||||
public void NextStep()
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace AibisDream
|
||||
|
||||
public void HideDialog();
|
||||
|
||||
public bool TrySkipLine();
|
||||
public bool TrySkipLine(bool isForceSkip = false);
|
||||
|
||||
public void NextStep();
|
||||
}
|
||||
|
||||
@@ -18,8 +18,6 @@ namespace AibisDream.Framework
|
||||
|
||||
#endregion
|
||||
|
||||
private bool _skipLineDelay;
|
||||
|
||||
public bool IsShowingText => _typewriter.isShowingText;
|
||||
|
||||
private void Awake()
|
||||
|
||||
@@ -103,9 +103,9 @@ namespace AibisDream
|
||||
}
|
||||
}
|
||||
|
||||
public bool TrySkipLine()
|
||||
public bool TrySkipLine(bool isForceSkip)
|
||||
{
|
||||
if (_skipLineDelay)
|
||||
if (_skipLineDelay && !isForceSkip)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user