Im going to make this simple.
I've made a multiple choice button here it is :
-Function Update () {
print ("Hello")
}
-Function OnGUI()
if (GUI.Button(Rect(20,40,100,40),'Hello')) {
var answer1=print ("How are you?");
answer1.rendrer.enabled=true;
}}
-Function OnGUI()
if (GUI.Button(Rect(20,60,100,40),'sorry I haven't got time')) {
var answer1=print ("ok, bye.");
answer1.rendrer.enabled=true;
}}
Ok before any comment shows up, I'm aware that my script is wrong. (and if someone can correct it, I thank him for that, it'll be of great help)
But that is not what I want know.
I just want to know how is it possible to save this "function" or choice?
I mean I want to make a rewind button, in the game, that will allow player to come back to another choice option he already made.
Like a save game.
I'm taking this idea from this game: http://ded.increpare.com/~locus/Detective_Clean/
Try it, and try the rewind button you'll understand what I mean.
I want to know how I can save this multiple choice as per exemple "choice 1" and get back to it if i choose in the game to rewind to choice 1.
Thanks