pause timer or player using Time.timeScale

hi guys i have a game manager script that i manage to pause the game when my player collide with an object by using Time.timescale but is there a alternative ways that i can pause only the timesystem and the game continue running if not then pause the game but the timesystem contiune running?


function Update(){

//if(isPaused == false){



Time.timeScale = 0;




Time.timeScale = 1;


	//starttime = Time.time;

	//time += Time.deltaTime;


function OnGUI () {


var guiTime = Time.time - startTime;

restSeconds = countDownSeconds - (guiTime);

//display messages or whatever here -->do stuff based on your timer
if (restSeconds == 60) {

    print ("One Minute Left");
if (restSeconds == 0) {

    print ("Time is Over");

	restSeconds = 0;

    //do stuff here
Paused = true;

I don't think there is other way to pause the default time system without using Time.timeScale. However, if you make your own time countdown or something else you can pause them. You can make a boolean to check if a pause button is pressed or not. If it is, then stop your script from subtracting the number of time.

if (!isPaused)

restSeconds = countDownSeconds - (guiTime);


However if you want the game paused but the time continues ticking. Then you can disable all the components that you want to stop except the time by using this line of code

gameObject.GetComponent ("name-of-the-script").enabled = false;

Hope this helps. Good Luck!