Skip to content

Instantly share code, notes, and snippets.

View gopricy's full-sized avatar

Boning gopricy

  • San Mateo
View GitHub Profile
@gopricy
gopricy / EnemyCollision.cs
Last active October 6, 2015 07:02
Unity_SpaceShooter_Template
void OnTriggerEnter (Collider other)
{
if (other.tag == "Boundary" || other.tag == "Enemy")
{
return;
}
if (explosion != null)
{
Instantiate(explosion, transform.position, transform.rotation);
@gopricy
gopricy / 0_reuse_code.js
Last active September 10, 2015 07:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console