Commit 3e71ef35 authored by Benjamin Lane's avatar Benjamin Lane

Added hazard script calling the "Die" method in Birb script

parent 31902001
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Hazard : MonoBehaviour {
void OnTriggerEnter2D(Collider2D other)
if (other.CompareTag("Player"))
other.GetComponent<Birb>().Die ();
fileFormatVersion: 2
guid: 763513e1173772545a16c3cb1a4d40d5
timeCreated: 1486688527
licenseType: Free
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
m_EditorVersion: 5.5.1f1
m_EditorVersion: 5.5.0f3
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment