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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class AsteroidSpawn : MonoBehaviour { | |
| // Array of object to spawn | |
| public GameObject[] asteroids; | |
| // Time it takes to spawn asteroids | |
| [Space(3)] |
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
| public bool boolean = false | |
| public float t = 3; | |
| void Update(){ | |
| if (!boolean){ | |
| t --; | |
| if(t < 0){ | |
| boolean = true; | |
| } | |
| } |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class AsteroidSpawn : MonoBehaviour { | |
| // Array of object to spawn | |
| public GameObject[] asteroids; | |
| // Time it takes to spawn asteroids | |
| [Space(3)] |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class MusicPlayer : MonoBehaviour { | |
| static MusicPlayer instance = null; | |
| // Use this for initialization | |
| void Start () | |
| { |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| public class LevelManager : MonoBehaviour { | |
| public void LoadLevel(string name) | |
| { | |
| Debug.Log("Load Level Requested for: " + name); |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| //[ExecuteInEditMode] | |
| public class MoveLerp : MonoBehaviour { | |
| [Range(0, 100)] | |
| public float Duration = 10f; |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class PlayerScript : MonoBehaviour { | |
| [Header("Movement")] | |
| [Range(0, 10)] | |
| public float Speed; |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class TextController : MonoBehaviour { | |
| public Text text; | |
| private enum States {cell, sheets_0, mirror, lock_0, sheets_1, cell_mirror, lock_1, corridor_0, | |
| stairs_0, floor, closet_door, stairs_1, corridor_1, in_closet, stairs_2, |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class MovementScript : MonoBehaviour { | |
| // ATTRIBUTE | |
| // [Range(-10, +10)] | |
| public float Speed; | |
| // public Vector3 Speed; | |
| // public KeyCode RightKey, LeftKey; |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class NumberWizards : MonoBehaviour { | |
| // Use this for initialization | |
| int max; | |
| int min; | |
| int guess; |