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 LooseLevel : MonoBehaviour { | |
private LevelManager levelManager; | |
void Start () { | |
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
// Created by: John Cordeiro | |
// [email protected] | |
using UnityEngine; | |
using System.Collections; | |
public class Paddle : MonoBehaviour { | |
// Set the public variables to private after functioning. |
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; | |
using UnityEngine.UI; | |
public class UIFadeIn : MonoBehaviour { | |
public float fadeInDelay; | |
void Start () { | |
GetComponent <Image>().CrossFadeAlpha (0, fadeInDelay, true); |
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
/* DESCRIPTION: | |
* Spawns defenders on the grid by converting | |
* mouse position when clicked on screne to world cordinates. | |
* Rounds the world cordinates to a whole gid number and | |
* spawns a defender in that location. | |
* | |
* Collider2D: | |
* Used for getting OnMouseDown message | |
*/ |
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
/* DESCRIPTION: | |
* Changes the color of the sprite when hit | |
* by a Projectile then back to it's original | |
* color over a float time in the IEnumerator's | |
* waitforSeconds. | |
* | |
* REQUIRED: | |
* Requires a Sprite Renderer component on the | |
* child gameObject of the defender. | |
* |