Skip to content

Instantly share code, notes, and snippets.

View JonathanYin's full-sized avatar
996

Jonathan Yin JonathanYin

996
View GitHub Profile
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public float speed = 6f;
Vector3 movement;
Animator anim;
Rigidbody playerRigidbody;
int floorMask;
using UnityEngine;
using System.Collections;
public class EnemyMovement : MonoBehaviour
{
Transform player;
PlayerHealth playerHealth;
EnemyHealth enemyHealth;
UnityEngine.AI.NavMeshAgent nav;
public float speed = 6f;
using UnityEngine;
public class SpecialEffectsHelper : MonoBehaviour
{
public static SpecialEffectsHelper Instance;
public ParticleSystem smokeEffect;
public ParticleSystem fireEffect;
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 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;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class SceneLoader : MonoBehaviour
{
private bool loadScene = false;
public GUIElement gui;
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 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;
public class Pencilline : MonoBehaviour
{
//public float explodeRadius = 1f;
//to refer to our prefab pencilline
public GameObject obj;
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class Pancam : MonoBehaviour
{
float ydir = 0f;
public GameObject player;
public GameObject player2;