Beispiel #1
0
    public void OnObjectUnSnapped()
    {
        sparkleEmission.enabled = true;
        cauldron.DeselectBook();
        Book closestbook = ClosestBook();

        closestbook.Close();
        bookCloseSound.Play();
        closestbook.GetComponent <Rigidbody> ().AddForce(Vector3.up * 1 + transform.up * 1, ForceMode.VelocityChange);
    }