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 UnityEngine; | |
public class PlaneRoot : MonoBehaviour | |
{ | |
[Header("Base Stats")] | |
public float baseAttack = 5f; | |
public float baseDefense = 10f; | |
public float baseHp = 20f; | |
[Header("Modded Stats")] |
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 UnityEngine; | |
public class PlanePart : MonoBehaviour | |
{ | |
[Header("Part Stats")] | |
public float Attack; | |
public float Defense; | |
public float Hp; | |
public float Weight; |
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 UnityEngine; | |
[RequireComponent(typeof(MeshRenderer)), RequireComponent(typeof(MeshFilter))] | |
public class RandomSprite : MonoBehaviour | |
{ | |
private static float quadScale = 1f; // Size of our Quad in World Units | |
private static Vector3[] quadVertices = new Vector3[] { new Vector3(0f, 0f, 0f), | |
new Vector3(quadScale, 0f, 0f), | |
new Vector3(0f, quadScale, 0f), |
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; | |
using System.Drawing; | |
using System.Runtime.InteropServices; | |
namespace Colorful | |
{ | |
/// <summary> | |
/// Exposes methods used for mapping System.Drawing.Colors to System.ConsoleColors. | |
/// Based on code that was originally written by Alex Shvedov, and that was then modified by MercuryP. | |
/// </summary> |
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
@echo off | |
goto prep | |
REM This batch script removes the leap drivers temporarily so SteamVR won't attempt to launch them | |
REM It also backup/restores the SteamVR.vrsettings file so you can have two copies and it switches the correct version in | |
REM This is just a little batch program I wrote to quickly disable/enable the SteamVR Leap Motion Drivers | |
REM You should copy steamvr.vrsettings twice and rename one to LeapVRSettings.vrsettings and the other to RegularVRSettings.vrsettings | |
REM Then run this batch once or twice and then go back in and change your steamvr.vrsettings as needed |
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
// Note this file goes in Assets/ | |
using UnityEngine; | |
using System.Collections.Generic; | |
[RequireComponent(typeof(PolygonCollider2D), typeof(MeshFilter), typeof(MeshRenderer))] // require PolygonCollider2D, MeshFilter, and MeshRenderer | |
public class PolygonDrawScript : MonoBehaviour | |
{ | |
private PolygonCollider2D Poly | |
{ |
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; | |
using UnityEngine; | |
using System.Runtime.InteropServices; | |
public class HeadlessScript : MonoBehaviour | |
{ | |
#if UNITY_STANDALONE_WIN && !UNITY_EDITOR | |
[DllImport("user32.dll", EntryPoint = "FindWindow", SetLastError = true)] | |
static extern IntPtr FindWindowByCaption(IntPtr zeroOnly, string lpWindowName); |
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.Generic; | |
using UnityEngine; | |
[RequireComponent(typeof(MeshFilter)), RequireComponent(typeof(MeshRenderer))] | |
public class ProtoMesh : MonoBehaviour | |
{ | |
#region Helper Properties | |
// Simple helpers to cache the MeshFilter and MeshRenderer | |
public MeshRenderer MyMeshRenderer | |
{ |
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; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
/* Unity Sprite Resizer v1.6 © Hotrian 2017 | |
* | |
* This has only been tested on PNG files. | |
* | |
* Usage instructions: |
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
<?xml version="1.0"?> | |
<profile name="Prusa Research Original Prusa i3 MK3" version="2018-01-19 08:00:00" app="S3D-Software 4.0.0"> | |
<baseProfile></baseProfile> | |
<printMaterial>PLA</printMaterial> | |
<printQuality>Medium</printQuality> | |
<printExtruders></printExtruders> | |
<extruder name="Primary Extruder"> | |
<toolheadNumber>0</toolheadNumber> | |
<diameter>0.4</diameter> | |
<autoWidth>0</autoWidth> |