public void ShipReset() { rb.Sleep(); if (cm.lastCheckpoint != null) { transform.position = cm.lastCheckpoint.transform.position; } else { transform.position = Vector3.up * -4.85f; } transform.rotation = Quaternion.identity; //TO-DO: create reset methods for these scripts fuel.AdjustFuel(90.0f); fuel.stranded = false; health.AdjustDamage(-100.0f); health.dead = false; controlsEnabled = false; StartCoroutine(Resetting(2.0f)); }