Skip to content

Instantly share code, notes, and snippets.

@alexgladd
alexgladd / .gitignore
Created August 22, 2015 02:55
My Unity .gitignore
# =============== #
# Unity generated #
# =============== #
Temp/
Library/
UnityVS/
UnityVS.meta
# ===================================== #
# Visual Studio / MonoDevelop generated #
@alexgladd
alexgladd / Shooter.cs
Last active October 10, 2015 14:38
Raycast for Attacker detection
bool IsAttackerInLane () {
RaycastHit2D[] hits = Physics2D.RaycastAll(transform.position, Vector2.right);
int i = 0;
while (i < hits.Length) {
if (hits[i].collider && hits[i].collider.GetComponent<Attacker>()) {
return true;
}
i++;
@alexgladd
alexgladd / keybase.md
Created August 31, 2014 03:56
Keybase.io Verification

Keybase proof

I hereby claim:

  • I am alexgladd on github.
  • I am alexgladd (https://keybase.io/alexgladd) on keybase.
  • I have a public key whose fingerprint is 2EED 5FA2 8E44 563A 2385 F209 7ED3 2DD2 5050 0EEC

To claim this, I am signing this object: