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
/** | |
* A simple elevator script. Can be attached to any object to make it move in the given direction. | |
* Requires a button that calls CallElevator(). | |
*/ | |
using UnityEngine; | |
using System.Collections; | |
public class Elevator : MonoBehaviour { | |
/// <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
/** | |
* Spawns a wall along the X and Y axes of the WallSpawner, using cubes of given size and materials | |
*/ | |
using UnityEngine; | |
using System.Collections; | |
public class WallSpawner : MonoBehaviour { | |
public int Nx = 10; | |
public int Ny = 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
/** | |
* Comes with an Editor that allows easily working around the Polygon2DCollider bug. | |
*/ | |
using UnityEngine; | |
using System.Collections; | |
[RequireComponent(typeof(PolygonCollider2D))] | |
public class ImprovedPolygonCollider2D : MonoBehaviour { | |
} |
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; | |
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 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 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 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 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 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; | |
} |
OlderNewer