Commit 1fc5c3e0 authored by Ashley's avatar Ashley

commented out lines

parent d45ea72a
...@@ -6,7 +6,7 @@ public class ToggleEnemy : MonoBehaviour { ...@@ -6,7 +6,7 @@ public class ToggleEnemy : MonoBehaviour {
Camera cam; Camera cam;
public List<Collider2D> enemies; public List<Collider2D> enemies;
List<BaseEnemy> disabledEnemies; //List<BaseEnemy> disabledEnemies;
// Use this for initialization // Use this for initialization
void Start () { void Start () {
...@@ -22,7 +22,7 @@ public class ToggleEnemy : MonoBehaviour { ...@@ -22,7 +22,7 @@ public class ToggleEnemy : MonoBehaviour {
//check if enemy is in view of camera and disable if not //check if enemy is in view of camera and disable if not
if (!GeometryUtility.TestPlanesAABB(camPlanes, enemies[i].bounds)) if (!GeometryUtility.TestPlanesAABB(camPlanes, enemies[i].bounds))
{ {
enemies[i].gameObject.GetComponent<BaseEnemy>().enabled = false; // enemies[i].gameObject.GetComponent<BaseEnemy>().enabled = false;
enemies.Remove(enemies[i]); enemies.Remove(enemies[i]);
} }
} }
......
...@@ -10,7 +10,7 @@ public class WinTrigger : MonoBehaviour { ...@@ -10,7 +10,7 @@ public class WinTrigger : MonoBehaviour {
if(other.gameObject.name == "Player") //ensuring it's the player if(other.gameObject.name == "Player") //ensuring it's the player
{ {
//tell manager it has won //tell manager it has won
GameEditor.Win(); //GameEditor.Win();
//Debug.Log("Victory Achieved"); //Debug.Log("Victory Achieved");
} }
} }
......
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