This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public class FlyCamera : MonoBehaviour | |
| { | |
| public float moveSpeed = 10f; | |
| public float mouseSensitivity = 2f; | |
| public float speedMultiplier = 2f; | |
| private float rotationX = 0.0f; | |
| private float rotationY = 0.0f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public class TrafficLight : MonoBehaviour | |
| { | |
| public MeshRenderer redBulb; | |
| public MeshRenderer yellowBulb; | |
| public MeshRenderer greenBulb; | |
| [Range(1f, 20f)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| [ExecuteInEditMode] | |
| public class CompassCreator : MonoBehaviour | |
| { | |
| public float offset = 3f; | |
| public float cubeSize = 0.25f; | |
| public Color labelColor = Color.white; | |
| void Start() |