Ejemplo n.º 1
0
    public void treeCollision()
    {
        if (!gc.lost)
        {
            gc.showResetStuff();
            gc.lost = true;
            manController.releaseME();
            pc.stopEverything();
            disableInput = true;

            rb.velocity                 = Vector3.zero;
            rb.maxAngularVelocity       = 0.5f;
            rb.maxDepenetrationVelocity = 0.0000001f;

            CameraController cc = GameObject.FindObjectOfType <CameraController> ();
            if (cc != null)
            {
                cc.VigourousShake(1f, 2f);
            }
        }
    }