Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/jackmawer/JacksWorld. An abandoned mini-project that I created while learning to use Unity with networking.
Something went wrong. Try again.
JacksWorld StopFallingOutOfWorld.cs
286 B · 13 lines
C#
at master
1234567891011121314using UnityEngine;using System.Collections;
public class StopFallingOutOfWorld : MonoBehaviour {
// Update is called once per frame void Update () { if (transform.position.y <= -10) { Debug.Log ("Fell out of world!"); transform.position = new Vector3(1, 1, 1); } }}