↧
Answer by Jaap Kreijkamp
function Go() { horizontal = Input.GetAxis("Horizontal") * speed * Time.deltaTime; vertical = Input.GetAxis("Vertical") * speed * Time.deltaTime; var pos : Vector3 = transform.position; pos.x =...
View ArticleAnswer by Calum1015
Unity 5 now offers an asset package named "2D" In this package there is a boundary in which when a tag named player hits this GameObject it resets your position. Hope this helps.
View Article