Day1和Day2重构基本完成,差Day2的UF视觉部分需要处理一下,Yarn部分开始没问题了

This commit is contained in:
2025-01-16 21:56:58 +08:00
parent 3592187b11
commit 6b8de5100d
72 changed files with 1936 additions and 746 deletions
+6 -1
View File
@@ -318,7 +318,12 @@ public void DeleteLine(string input)
if (lineSegmentDictionary.ContainsKey(recognizedName))
{
InteractiveLineSegment lineSegmentToRemove = lineSegmentDictionary[recognizedName];
//lineSegmentDictionary.Remove(recognizedName);
if (lineSegmentToRemove == null || lineSegmentToRemove.gameObject == null)
{
Debug.LogWarning("Line segment already removed: " + recognizedName);
return;
}
// Destroy the line segment GameObject
Destroy(lineSegmentToRemove.gameObject);