testing

<code>

private var ray : Ray;
private var hit : RaycastHit;

function Start () {

}

function Update () {

  if(Input.GetMouseButtonDown(0)){
    ray = Camera.main.ScreenPointToRay(Input.mousePosition);
    if(Physics.Raycast(ray, hit)){
      if(hit.transform.name == "BrickBreakerOption"){

      }
      if(hit.transform.name == "TempleRunOption"){
        Application.LoadLevel("TempleRun");
      }

    }
  }

}</code>

Author: trav

I'm just an average guy that love programming.

Share This Post On

Submit a Comment

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>