Skip to content

Instantly share code, notes, and snippets.

Strip all the display code from unity progress.js until you’re left with:
function UnityProgress (dom) {
this.progress = 0.0;
this.message = "";
this.dom = dom;
var parent = dom.parentNode;
this.SetProgress = function (progress) {
if (this.progress < progress)
this.progress = progress;
2
3
4
5
6
7
8
9
10
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class gunController : MonoBehaviour {
public float fireRate;
public GameObject endofLine;
public LineRenderer laserLineTrace;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class playerController : MonoBehaviour {
public float moveSpeed;
public float jumpHeight;
public Rigidbody2D playerRB;
public GameObject weaponHolder;
@h1ggs
h1ggs / mouse
Created January 25, 2018 21:52
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class toggleMouse : MonoBehaviour, ICanvasRaycastFilter {
public bool interactable;
public bool toggle;
public Inventory slotPanel;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Movement : MonoBehaviour {
public Vector2 speed = new Vector2(50, 0);
public float jumpHeight;
public LayerMask mask;