Commit ce0201c6 authored by Tanner Grehawick's avatar Tanner Grehawick

commented out errors

parent 463aa24f
fileFormatVersion: 2
guid: 054a338e9e65946b5945c525443c8e4d
folderAsset: yes
timeCreated: 1487896949
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
......@@ -6,13 +6,13 @@ public class ToggleEnemy : MonoBehaviour {
Camera cam;
public List<Collider2D> enemies;
List<BaseEnemy> disabledEnemies;
// List<BaseEnemy> disabledEnemies;
// Use this for initialization
void Start () {
cam = Camera.main;
}
// Update is called once per frame
void Update () {
//get frustum of camera
......@@ -22,7 +22,7 @@ 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[i].gameObject.GetComponent<BaseEnemy>().enabled = false;
enemies.Remove(enemies[i]);
}
}
......
fileFormatVersion: 2
guid: 4977434f892984647983a01798228920
timeCreated: 1487896949
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 11ecc39894ce94f60a0a952e704c611f
timeCreated: 1487896949
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
m_EditorVersion: 5.5.0xf3Linux
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