Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Gameobject can't be re-activated after loading screen

Discussion in 'Scripting' started by Nekuneku, Dec 11, 2018.

  1. Nekuneku

    Nekuneku

    Joined:
    Mar 27, 2017
    Posts:
    50
    Hello everyone,

    I guess the title explains its self, I have this game object that needs to be deactivated after certain amount of game overs, the problem is that after i hit the restart button the game restart everything is normal expect for that game object it does not show up at all ,i tried activating it in different ways but it does't seem to happen
    the scripts that activate it and deactivate that game object seems to be working only the first time I hit play after a restart, it stops working.

    I will be grateful for any ideas or thoughts about this issue
    Thanks you for reading and for your time

    Cheers
     
  2. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,874
    Without some code snippets, its going to be very hard to help you as this is a contextual issue
     
    Nekuneku, karl_jones and SparrowGS like this.
  3. Nekuneku

    Nekuneku

    Joined:
    Mar 27, 2017
    Posts:
    50
    Thank you very much for your reply and time,
    You were right i had to post a my code snippet and sorry for not doing so, luckily I found out where the problem was, There was a missing method that I added I included later one and now the script is working correctly:)
    Thanks again !
     
    MadeFromPolygons likes this.
  4. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,874
    Well done for finding it on your own!
     
    Nekuneku likes this.