Browse Source

Make a note about component removal

Josh Engebretson 9 years ago
parent
commit
c535c476d5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Butterflies/CSharp/Resources/Components/Butterfly.cs

+ 4 - 0
Butterflies/CSharp/Resources/Components/Butterfly.cs

@@ -62,6 +62,10 @@ public class Butterfly : CSComponent
         //check if our butterfly is out of bounds
         if (pos.X < -halfWidth || pos.Y < -halfHeight || pos.X > halfWidth || pos.Y > halfHeight)
         {
+            // TODO: We need to remove the component first, then the Node
+            // The component removal removes the component from the scene Update
+            // Which at the time of writing this comment, Node.Remove is not
+            Remove();
             Node.Remove();
         }