Skip to content

Instantly share code, notes, and snippets.

View JonathanYin's full-sized avatar
996

Jonathan Yin JonathanYin

996
View GitHub Profile
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;
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;
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;
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
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class GameOver : MonoBehaviour
{
int score = 0;
int score2 = 0;
public GUIElement gui;
public GUIElement gui2;
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class Destroyer : MonoBehaviour
{
public GameObject player;
public GameObject player2;
void OnTriggerEnter2D(Collider2D other)
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)
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)
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;
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;