public IEnumerator ifBoostedCo() { // gameObject.SetActive(false); speedStore = speed; transform.position = thePlatformGenerator.getPlayerTeleport(); //Time.timeScale = 0.1f; speed = 0; yield return(new WaitForSeconds(0.6f)); speed = speedStore; //gameObject.SetActive(true); }