Commit aafa3923 authored by Luke A Smith's avatar Luke A Smith
Browse files

Merge branch 'hazard' into 'master'

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

See merge request !5
parents 31902001 3e71ef35
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