CopyPastehas never been so tasty!

nff

by anonymous

  • 0
  • 0
  • 0
130 views

var speed = 10;
//the currect lavel
var nextlLavel:int;
var moveDir = Vector3.zero;

function FixedUpdate()
{
moveDir.x = Input.GetAxis("Horizontal") * speed;
moveDir.z = Input.GetAxis("Vertical") * speed;

rigidbody.velocity;

}
function OnTriggerEnter (hit : Collider)
{
if (hit.tag=="enemy")
transform.position=Vector3(-1.836594,3.364676,-5.482049);
else
// trasport me into the currect lavel
Application.LoadLevel ( nextlLavel);
}

Add A Comment: