Player not effected by Slow-Motion ?

Updated on March 24, 2017 in Answers
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on March 24, 2017

When I slow-motion the game, player should not effected. How to do that ?


public Transform player;
void Update() {

if(Input.GetKey(KeyCode.Q)) {

Time.timeScale = 0.3f;

}

else {

Time.timeScale = 1.0f;

}
Time.fixedDeltaTime = 0.02f * Time.timeScale;
} // end update

  • Liked by
Reply