x


track previous scene?

Hello. I am wondering if there is anyway to track the previously loaded scene and use it in an if statement? My game has three game modes and I want to know if I need three game over scenes? Thanks

more ▼

asked Jan 01 '11 at 08:41 AM

Tyler 2 gravatar image

Tyler 2
1.1k 211 246 264

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I'm not completely sure what you mean, but it sounds like this basically falls into the category of 'how do I make data persist between scenes'. If that is the case, the usual answers apply (static variable, DontDestroyOnLoad(), PlayerPrefs if you want the data to persist between runs of the application, etc.).

more ▼

answered Jan 01 '11 at 08:49 AM

Jesse Anders gravatar image

Jesse Anders
7.3k 7 17 48

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x110

asked: Jan 01 '11 at 08:41 AM

Seen: 857 times

Last Updated: Jan 01 '11 at 08:41 AM