I have a BattleComponent in a different scene (I teleport to the battle, and from the battle as described in http://orkframework.com/tutorial/gameplay/battle-in-a-different-scene/), but unfortunately when the battle ends and I get taken back to my main menu the gameobject travels with me (it doesn't get destroyed). This leads me to the problem of the next time I teleport to that scene I now have two BattleComponents. I want the ability to repeat the fight, but only have one BattleComponent .

I have set auto destroy and repeat check set ( http://puu.sh/ooh5O/75f99b699b.png ), my events are set (http://puu.sh/oohsv/9ea5a63fa0.png), so not sure what could be muddling it.
  • edited April 2016
    So - I should note that I have temporarily fixed this issue by modifying my events to look similar to this (http://puu.sh/oolYw/3eabdaaff7.png), but ideally I wouldn't have to do that since I don't want the overhead of searching every object and then waiting and then deleting it.
    Post edited by deckrocket on
  • Battle components (or their game objects) aren't destroyed after battle, if you want to destroy them, just do it like you did in your event.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.