Commit f2e72734 authored by Jordan B Mckenney's avatar Jordan B Mckenney

commented errors

parent ab2ad127
fileFormatVersion: 2
guid: 79d075457339b354e831e24223780806
folderAsset: yes
timeCreated: 1487896426
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
......@@ -6,7 +6,7 @@ public class ToggleEnemy : MonoBehaviour {
Camera cam;
public List<Collider2D> enemies;
List<BaseEnemy> disabledEnemies;
//List<BaseEnemy> disabledEnemies;
// Use this for initialization
void Start () {
......@@ -22,8 +22,8 @@ public class ToggleEnemy : MonoBehaviour {
//check if enemy is in view of camera and disable if not
if (!GeometryUtility.TestPlanesAABB(camPlanes, enemies[i].bounds))
{
enemies[i].gameObject.GetComponent<BaseEnemy>().enabled = false;
enemies.Remove(enemies[i]);
// enemies[i].gameObject.GetComponent<BaseEnemy>().enabled = false;
// enemies.Remove(enemies[i]);
}
}
}
......
fileFormatVersion: 2
guid: d1a4ed90804e1404892681240acf152b
timeCreated: 1487896428
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 541242f5d785a6b47844f82cdb4f2d5d
timeCreated: 1487896428
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -10,7 +10,7 @@ public class WinTrigger : MonoBehaviour {
if(other.gameObject.name == "Player") //ensuring it's the player
{
//tell manager it has won
GameEditor.Win();
//GameEditor.Win();
//Debug.Log("Victory Achieved");
}
}
......
Birb @ 1a6a7e32
Subproject commit 1a6a7e32dc77552677da1f8b3dd483d3ad2fac55
m_EditorVersion: 5.5.0f3
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