Built out a simple level with some puzzles

This commit is contained in:
2018-04-21 21:46:34 +10:00
parent a8741ccc26
commit 011a1ce0c3
37 changed files with 12006 additions and 93 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ using UnityEngine;
//shootable
public class FireDamager : DamagerBase {
void OnTriggerEnter2D(Collider2D collider) {
if (collider.gameObject.GetComponent<FireDamager> () == null) { //pass through other instances of self
if (collider.gameObject.GetComponent<FireDamager> () == null && collider.gameObject.GetComponent<BlockGap> () == null) { //pass through other instances of self
Destroy (gameObject);
}
}
+12
View File
@@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//shootable
public class IceDamager : DamagerBase {
void OnTriggerEnter2D(Collider2D collider) {
if (collider.gameObject.GetComponent<IceDamager> () == null && collider.gameObject.GetComponent<BlockGap> () == null) { //pass through other instances of self
Destroy (gameObject);
}
}
}
+13
View File
@@ -0,0 +1,13 @@
fileFormatVersion: 2
guid: 4b0265e5d9f1a804aaa77a77754f51e0
timeCreated: 1524281573
licenseType: Free
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: