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
/******************************************************************************* | |
* AddNGonPolygonCollider.cs | |
* | |
* When attached to a game object this script will add an N-sided hollow | |
* PolygonCollider2D to the object. Its primary use in Spacebomb is to generate | |
* the collider for the edge of the world. | |
******************************************************************************/ | |
using UnityEngine; | |
using System.Collections; |
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; | |
using System.Collections; | |
public class ConfineToCircle : MonoBehaviour | |
{ | |
/*************************************************************************** | |
* INSPECTOR DATA | |
**************************************************************************/ |
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
/***************************************************************************** | |
* GameState.cs | |
* | |
* A common base type for all Game Manager states that grants access to | |
* the Game Data. | |
****************************************************************************/ | |
using UnityEngine; | |
using System.Collections; |
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
/***************************************************************************** | |
* SinglePlayerGameplayState.cs | |
* | |
* This state is used by the Game Manager when the game is playing in | |
* single-player mode. | |
****************************************************************************/ | |
using UnityEngine; | |
using System.Collections; |
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
/***************************************************************************** | |
* GameData.cs | |
* | |
* Holds pointers to data that may be needed by more than one gameplay | |
* state. | |
****************************************************************************/ | |
using UnityEngine; | |
using System.Collections; |
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
/***************************************************************************** | |
* State.cs | |
* | |
* This interface allows an object to be treated as a State by a State | |
* Machine. | |
****************************************************************************/ | |
using UnityEngine; | |
using System.Collections; |