This file contains 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 UnityEngine; | |
public class Note : MonoBehaviour | |
{ | |
private Texture pic1; | |
public GameObject panel; | |
private float open = 0f; | |
public bool toggleBool; | |
public GameObject player; |
This file contains 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.Generic; | |
using UnityEngine; | |
public class Music : MonoBehaviour | |
{ | |
public List<AudioSource> musicClips = new List<AudioSource>(); | |
public GameObject music1; | |
public GameObject music2; | |
public GameObject music3; | |
public Texture2D icon; |
This file contains 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 MoveScript : MonoBehaviour | |
{ | |
public Vector2 speed = new Vector2(10, 10); | |
public Vector2 direction = new Vector2(-1, 0); | |
private Vector2 movement; | |
private Rigidbody2D rigidbodyComponent; |
This file contains 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; | |
using System.Collections; | |
public class GUIComponent : MonoBehaviour | |
{ | |
public GUISkin guiSkin; // choose a guiStyle (Important!) | |
public static string text = "P1"; // choose your name | |
public Color color = Color.blue; // choose font color/size |
This file contains 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; | |
using System.Collections; | |
using UnityEngine.SceneManagement; | |
public class GameOver : MonoBehaviour | |
{ | |
int score = 0; | |
int score2 = 0; | |
public GUIElement gui; | |
public GUIElement gui2; |
This file contains 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; | |
using System.Collections; | |
using UnityEngine.SceneManagement; | |
public class Destroyer : MonoBehaviour | |
{ | |
public GameObject player; | |
public GameObject player2; | |
void OnTriggerEnter2D(Collider2D other) |
This file contains 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; | |
using System.Collections; | |
public class Coins : MonoBehaviour | |
{ | |
//make a container for the heads up display | |
Pancam hud; | |
//public GameObject player; | |
void OnTriggerEnter2D(Collider2D col) |
This file contains 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; | |
using System.Collections; | |
public class BonusPoints : MonoBehaviour | |
{ | |
//make a container for the heads up display | |
Pancam hud; | |
public GameObject player; | |
void OnTriggerEnter2D(Collider2D col) |
This file contains 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 UnityEngine; | |
public class BombSpawner2 : MonoBehaviour | |
{ | |
// a public object array for which objects to spawn | |
public GameObject[] obj; | |
//min and max times for another spawn | |
public float spawnMin = 3f; | |
public float spawnMax = 2f; |
This file contains 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 BombSpawner : MonoBehaviour | |
{ | |
// a public object array for which objects to spawn | |
public GameObject[] obj; | |
//min and max times for another spawn | |
public float spawnMin = 3f; | |
public float spawnMax = 2f; |