Skip to content

Instantly share code, notes, and snippets.

View victor-vargas2009's full-sized avatar

Victor Vargas victor-vargas2009

  • San Francisco CA
View GitHub Profile
@victor-vargas2009
victor-vargas2009 / LoseCollider.cs
Created February 1, 2016 03:04
Block Breaker
using UnityEngine;
using System.Collections;
public class LoseCollider : MonoBehaviour {
public static int playerLives = 2;
private LevelManager lvlManager;
private LivesTextIndicatorUI uiLivesIndicator;
private Ball ball;
@victor-vargas2009
victor-vargas2009 / Ball.cs
Created February 1, 2016 03:06
Bloke Breaker
using UnityEngine;
using System.Collections;
public class Ball : MonoBehaviour {
private Paddle paddleObject;
private Vector3 paddleToBallVector;
private bool hasStarted = false;
// Use this for initialization