Question by
SoSKILLER · Mar 02, 2017 at 07:04 PM ·
c#javascriptrespawningjava to c#convertc#
convert java to c#
#pragma strict
var spawn_point : Transform;
var Gamecamera : Transform;
function playerRespawn(){
transform.position = spawn_point.position;
}
function Update(){
Gamecamera.LookAt(this.transform);
var playerPos = transform.position;
if(playerPos.y <= -15){
playerRespawn();
}
}
Comment
Your answer
Follow this Question
Related Questions
UnityScript to C# Conversion 1 Answer
Java Script to talk to C# script 0 Answers
JavaScript to C# 1 Answer
Convert Java to C# 2 Answers