diff --git a/Forest/Assets/Scripts/Gameplay/LevelState.cs b/Forest/Assets/Scripts/Gameplay/LevelState.cs index 36ca39b..d17f411 100644 --- a/Forest/Assets/Scripts/Gameplay/LevelState.cs +++ b/Forest/Assets/Scripts/Gameplay/LevelState.cs @@ -153,6 +153,7 @@ namespace Gameplay.Level { try { + PutThumbtack(); if (_isMoving) { _curThumbtack.Obj.layer = 13; @@ -171,8 +172,6 @@ namespace Gameplay.Level RecoverPlankStatus(); } } - - PutThumbtack(); } catch (Exception e) { @@ -180,13 +179,14 @@ namespace Gameplay.Level } } + /// + /// 暂停时提前放置钉子 + /// private void PutThumbtack() { if ((LevelManager.Instance.IsPause || LevelManager.Instance.IsOver) && _curThumbtack != null) { - _curThumbtack.Obj.GetComponent().color = _defaultColor; - LevelManager.Instance.CurUndoState.PreModifiedKong.LevelThumbtack = _curThumbtack; - _curThumbtack = null; + _curThumbtack.Obj.transform.position = _target.position; } }