This file contains hidden or 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 Voxelizer : MonoBehaviour { | |
public int xSlices = 5; | |
public int ySlices = 5; | |
public int zSlices = 5; | |
public GameObject Cube; |
This file contains hidden or 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; | |
using System.Linq; | |
using System.Collections.Generic; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
[InitializeOnLoad] |
This file contains hidden or 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
[System.Serializable] | |
public struct IntVector2 { | |
public int x, y; | |
public IntVector2 (int x, int y) { | |
this.x = x; | |
this.y = y; | |
} |
This file contains hidden or 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
/** | |
* jsBezier-0.8 | |
* | |
* Copyright (c) 2010 - 2016 jsPlumb ([email protected]) | |
* | |
* licensed under the MIT license. | |
* | |
* a set of Bezier curve functions that deal with Beziers, used by jsPlumb, and perhaps useful for other people. These functions work with Bezier | |
* curves of arbitrary degree. | |
* |
This file contains hidden or 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; | |
using System.Collections; | |
public class Explosion2D : MonoBehaviour { | |
public float power = 10; | |
public float radius = 10; | |
void OnMouseDown() { | |
Explode (transform.position, radius, power); | |
} |
This file contains hidden or 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
/** | |
* Move a cube by rolling in four directions. | |
*/ | |
using UnityEngine; | |
using System.Collections; | |
public class RollingCube : MonoBehaviour { | |
public float speed = 2; |
This file contains hidden or 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
/** | |
######################################################################## | |
Intro | |
######################################################################## | |
Title: ROE Assist | |
Description: Loose collection of scripts that might make playing ROE a little bit more interesting. | |
Video of a very early version of the auto raid loop: http://i.imgur.com/tjjMOtg.gifv (30s video of 25 min. play-time) | |
######################################################################## |
This file contains hidden or 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; | |
using System.Collections; | |
/// <summary> | |
/// Halo (光環) | |
/// </summary> | |
public class HaloPickUp2D : MonoBehaviour { | |
public Player player; | |
public Vector2 relativePosition = new Vector2(0, 1); | |
public Vector2 bobbingRadius = new Vector2(0.8f, 0.2f); |
This file contains hidden or 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
/** | |
* Comes with an Editor that allows easily working around the Polygon2DCollider bug. | |
*/ | |
using UnityEngine; | |
using System.Collections; | |
[RequireComponent(typeof(PolygonCollider2D))] | |
public class ImprovedPolygonCollider2D : MonoBehaviour { | |
} |