Day1和Day2重构基本完成,差Day2的UF视觉部分需要处理一下,Yarn部分开始没问题了
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user