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 System; | |
public class SensePowerGlove : WeaponClass | |
{ | |
// This is a special power weapon that instansiates a prefab in form of an sphere that moves from target to target and knocks them out. | |
//This is made by using a overlapshere to check the closest enemy and moving towards it. |
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 FogRemover : MonoBehaviour | |
{ | |
public bool canUseLantern; | |
private bool hasLantern; | |
public GameObject Lantern; | |
[SerializeField] private int particleAmount; |
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 FauxGravityBodys : MonoBehaviour | |
{ | |
public FauxGravityAttractor attractor; | |
private Transform myTransform; | |
Rigidbody rb; | |
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 FauxGravityAttractor : MonoBehaviour | |
{ | |
public float gravity = -10f; | |
public float slerpSpeed = 50f; | |
public void Attract (Transform body) | |
{ |
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 PlayerMovement : MonoBehaviour | |
{ | |
public float mouseSensitivityX = 1; | |
public float mouseSensitivityY = 1; |
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 ThrowToPoint : MonoBehaviour | |
{ | |
public Rigidbody beingThrown; | |
private Rigidbody throwable; | |
public GameObject moveSphere; | |
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 UnityEngine; | |
using System; | |
public class DistancePowerGlove : IComparer | |
{ | |
// Compares the distance between transforms, and this is called from "Sense Power GLOVE" to sort an array of colliders transforms. | |