Skip to content

Instantly share code, notes, and snippets.

@atakotestudios
Last active June 27, 2017 01:26
Show Gist options
  • Save atakotestudios/34043039ba3454f2bf817c348be6aee8 to your computer and use it in GitHub Desktop.
Save atakotestudios/34043039ba3454f2bf817c348be6aee8 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class Goal : MonoBehaviour {
public int scoreMultiplier = 1;
void OnTriggerEnter(Collider col)
{
if (col.CompareTag("projectile"))
{
Debug.Log ("hit!!");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment