summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Column.cs
diff options
context:
space:
mode:
authorMarvin Borner2018-05-23 18:13:38 +0200
committerMarvin Borner2018-05-23 18:13:38 +0200
commit36893bdbc54c0923173907007624f8af95495e9a (patch)
treeae32d3e6b101d08f04d15d3f821353d27c0bf0b4 /Assets/Scripts/Column.cs
parente847649f0efdeea03da1c473d477a4d55cc253d3 (diff)
Finished column poolHEADv1.0master
Diffstat (limited to 'Assets/Scripts/Column.cs')
-rw-r--r--Assets/Scripts/Column.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Assets/Scripts/Column.cs b/Assets/Scripts/Column.cs
new file mode 100644
index 0000000..2468c0b
--- /dev/null
+++ b/Assets/Scripts/Column.cs
@@ -0,0 +1,13 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class Column : MonoBehaviour {
+ private void OnTriggerEnter2D(Collider2D other)
+ {
+ if (other.GetComponent<Bird>() != null)
+ {
+ GameControl.instance.BirdScored();
+ }
+ }
+}