Check out example codes for "slomotion in unity 3d". It will help you in understanding the concepts better.

Code Example 1

using UnityEngine;
using System.Collections;

public class SlowMotion : MonoBehaviour {

float currentAmount = 0f;
float maxAmount = 5f;

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {

if(Input.GetKeyDown ("insert any key here")){

if(Time.timeScale == 1.0f)
Time.timeScale = 0.3f;

else

Time.timeScale = 1.0f;
Time.fixedDeltaTime = 0.02f * Time.timeScale;
}


if(Time.timeScale == 0.03f){

currentAmount += Time.deltaTime;
}

if(currentAmount > maxAmount){

currentAmount = 0f;
Time.timeScale = 1.0f;

}

}
}

Learn ReactJs, React Native from akashmittal.com