【Bug】撤回bug

iOS_release
zhangaotian 2024-08-21 16:24:06 +08:00
parent d952f891d6
commit 1067ca27bf
1 changed files with 12 additions and 0 deletions

View File

@ -171,6 +171,8 @@ namespace Gameplay.Level
RecoverPlankStatus(); RecoverPlankStatus();
} }
} }
PutThumbtack();
} }
catch (Exception e) catch (Exception e)
{ {
@ -178,6 +180,16 @@ namespace Gameplay.Level
} }
} }
private void PutThumbtack()
{
if ((LevelManager.Instance.IsPause || LevelManager.Instance.IsOver) && _curThumbtack != null)
{
_curThumbtack.Obj.GetComponent<SpriteRenderer>().color = _defaultColor;
LevelManager.Instance.CurUndoState.PreModifiedKong.LevelThumbtack = _curThumbtack;
_curThumbtack = null;
}
}
private void AddorRemoveHj2D() private void AddorRemoveHj2D()
{ {
try try