We are using the google cardboard reticle to trigger a new scene if the collider you rollover is pressed… So we modify the google cardboard teleport script so when the function is called we modified so it doesn’t put the box randomly but would load a new level
the message isn’t even making it to the console:
public void TeleportRandomly() {
// Vector3 direction = Random.onUnitSphere;
// direction.y = Mathf.Clamp(direction.y, 0.5f, 1f);
// float distance = 2 * Random.value + 1.5f;
// transform.localPosition = direction * distance;
RaycastHit hit;
if (hit.collider.gameObject.tag == "balcony"){
Debug.Log("YOYO");
Application.LoadLevel("balcony");
}
}