Exemplo n.º 1
0
    public void Respawn()
    {
        drifting             = false;
        body.velocity        = Vector3.zero;
        body.angularVelocity = Vector3.zero;
        Transform lastCheck = manager.GetLastCheckpoint();

        transform.position = lastCheck.transform.position + lastCheck.transform.up * .5f;
        transform.rotation = lastCheck.transform.rotation;
    }