Sorry i am a Beginner at Unity GUI and Time Scripting Stuff
I Want to Know How to Properly Pause the game in 3d
I dont want to use Time.timescale stuff Because most of my Game is in
FixedUpdate() And my Animated GUI Doesnt Work Nice with my Game
And If Your going to give scripts Id Prefer Unity Javascript More than C Sharp
C Sharp is OK If you cant provide Unity JS
I just want to know a technique
Or If you know Something else useful for this please inform me
My pause Script Is Something ike this
#pragma strict
public var pauseKey : String;
private var GamePaused : boolean;
function FixedUpdate(){
//Dostuff
if(Input.GetKey(pauseKey) ){
if(GamePaused){
//Activate GUI
//Pause Game with Time.timescale=0; stuff
}
else{
//Play Game with time.timescale=1; stuff
//Deactivate GUI
}
}
}
Im not allowed to share the real
script
Plz help me quick
Other Details:
I use Unity 5 Personal edition
I use InstantGUI Asset for GUI
But I can also work with custom GUI
My Scene Has 3 cameras
-
Game Screen
-
radar
-
Additional Information
My Scene has a terrain
My scene contains Custom Meshes From Blender
I Have More than 15 Javascript scripts
My scene contains Changing skyboxes Via scripts
My scene has over a 1000 characters controlled by one “Operator” script
I also have 2048*2048 tiling textures made in GIMP
I have Normal Maps Made with CrazyBump
I want to publish my Game to Non-Touch devices like PC,Mac,Linux,Xbox
I dont think you need any more details do you?