Пример #1
0
    public void Reset()
    {
        gameObject.transform.rotation = rotQ;
        gameObject.transform.position = startPosition;
        rb.velocity        = Vector3.zero;
        rb.angularVelocity = Vector3.zero;

        RunnerScript ghost = GameObject.FindObjectOfType <RunnerScript>();

        if (ghost)
        {
            ghost.Reset();
        }
    }