Commit c3c65bcc authored by Maxime's avatar Maxime
Browse files

fix level with portal on wrong channels

parent 04cc05dc
......@@ -23,14 +23,14 @@
<objectgroup id="2" name="Calque d'Objets 1">
<object id="6" name="Portal" x="240" y="96">
<properties>
<property name="id" type="int" value="0"/>
<property name="id" type="int" value="1"/>
<property name="in" type="bool" value="false"/>
</properties>
<point/>
</object>
<object id="7" name="Portal" x="240" y="384">
<properties>
<property name="id" type="int" value="0"/>
<property name="id" type="int" value="1"/>
<property name="in" type="bool" value="true"/>
</properties>
<point/>
......
......@@ -23,14 +23,14 @@
<objectgroup id="2" name="Calque d'Objets 1">
<object id="6" name="Portal" x="240" y="96">
<properties>
<property name="id" type="int" value="0"/>
<property name="id" type="int" value="1"/>
<property name="in" type="bool" value="false"/>
</properties>
<point/>
</object>
<object id="7" name="Portal" x="240" y="384">
<properties>
<property name="id" type="int" value="0"/>
<property name="id" type="int" value="1"/>
<property name="in" type="bool" value="true"/>
</properties>
<point/>
......
......@@ -136,6 +136,9 @@ namespace ZZZZZZ.Worlds
{
try
{
foreach (var portal in Portals)
portal.Dispose();
GameManager.Current.Scene.RemoveChild(ChildFromScene);
base.Dispose(disposing);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment