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.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 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 UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class Pancam : MonoBehaviour
{
float ydir = 0f;
public GameObject player;
public GameObject player2;
using UnityEngine;
using System.Collections;
public class Pencilline : MonoBehaviour
{
//public float explodeRadius = 1f;
//to refer to our prefab pencilline
public GameObject obj;
using UnityEngine;
using System.Collections;
using System.Diagnostics;
public class RobotController : MonoBehaviour
{
//This will be our maximum speed as we will always be multiplying by 1
public static float maxSpeed = 9f;
//a boolean value to represent whether we are facing left or not
bool facingLeft = true;
using UnityEngine;
using System.Collections;
using System.Diagnostics;
public class RobotController1 : MonoBehaviour
{
//This will be our maximum speed as we will always be multiplying by 1
public static float maxSpeed = 9f;
//a boolean value to represent whether we are facing left or not
bool facingLeft = true;
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class SceneLoader : MonoBehaviour
{
private bool loadScene = false;
public GUIElement gui;
using System.Collections;
using UnityEngine;
public class Shield : MonoBehaviour
{
public GameObject player1;
public GameObject player2;
public GameObject shield;
private float wait = 0f;
public GameObject particle1;
using UnityEngine;
using System.Collections;
public class SpikeBall : MonoBehaviour
{
//a holder for our Animator
Animator anim;
//a public float for the explosion radius
private Vector2 movement;
private Rigidbody2D rigidbodyComponent;
using UnityEngine;
public class SpecialEffectsHelper : MonoBehaviour
{
public static SpecialEffectsHelper Instance;
public ParticleSystem smokeEffect;
public ParticleSystem fireEffect;