Compare commits
No commits in common. "6f51f8417ed8346836423ebcdb2f67f0611c72eb" and "30cfae0338a72f449a14f5cf5eb4c326bc3ced27" have entirely different histories.
6f51f8417e
...
30cfae0338
|
@ -153,7 +153,6 @@ namespace Gameplay.Level
|
|||
{
|
||||
try
|
||||
{
|
||||
PutThumbtack();
|
||||
if (_isMoving)
|
||||
{
|
||||
_curThumbtack.Obj.layer = 13;
|
||||
|
@ -172,6 +171,8 @@ namespace Gameplay.Level
|
|||
RecoverPlankStatus();
|
||||
}
|
||||
}
|
||||
|
||||
PutThumbtack();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -179,14 +180,13 @@ namespace Gameplay.Level
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 暂停时提前放置钉子
|
||||
/// </summary>
|
||||
private void PutThumbtack()
|
||||
{
|
||||
if ((LevelManager.Instance.IsPause || LevelManager.Instance.IsOver) && _curThumbtack != null)
|
||||
{
|
||||
_curThumbtack.Obj.transform.position = _target.position;
|
||||
_curThumbtack.Obj.GetComponent<SpriteRenderer>().color = _defaultColor;
|
||||
LevelManager.Instance.CurUndoState.PreModifiedKong.LevelThumbtack = _curThumbtack;
|
||||
_curThumbtack = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue