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 System.Collections.Generic; | |
using UnityEngine; | |
public class Movement : MonoBehaviour { | |
public Vector2 speed = new Vector2(50, 0); | |
public float jumpHeight; | |
public LayerMask mask; |
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 System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class toggleMouse : MonoBehaviour, ICanvasRaycastFilter { | |
public bool interactable; | |
public bool toggle; | |
public Inventory slotPanel; |
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 System.Collections.Generic; | |
using UnityEngine; | |
public class playerController : MonoBehaviour { | |
public float moveSpeed; | |
public float jumpHeight; | |
public Rigidbody2D playerRB; | |
public GameObject weaponHolder; |
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 System.Collections.Generic; | |
using UnityEngine; | |
public class gunController : MonoBehaviour { | |
public float fireRate; | |
public GameObject endofLine; | |
public LineRenderer laserLineTrace; |
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
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 |
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
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; |