瀏覽代碼

Romancing the node...

Josh Engebretson 9 年之前
父節點
當前提交
26455c5cc4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Butterflies/CSharp/Resources/Components/Butterfly.cs

+ 2 - 1
Butterflies/CSharp/Resources/Components/Butterfly.cs

@@ -65,8 +65,9 @@ public class Butterfly : CSComponent
             // TODO: We need to remove the component first, then the Node
             // TODO: We need to remove the component first, then the Node
             // The component removal removes the component from the scene Update
             // The component removal removes the component from the scene Update
             // Which at the time of writing this comment, Node.Remove is not
             // Which at the time of writing this comment, Node.Remove is not
+            var node = Node;
             Remove();
             Remove();
-            Node.Remove();
+            node.Remove();
         }
         }
 
 
     }
     }