// Use this for initialization void Start() { collisionManager = GetComponent <CollisionManagement>(); crabs = new List <GameObject>(); height = cam.orthographicSize; width = height * cam.aspect; spawnedHazards = 0; enemyMove = hazard.GetComponent <EnemyMovement>(); while (spawnedHazards < hazardCount) { HazardCreation(); } }
// Use this for initialization void Start() { collisionManager = manager.GetComponent <CollisionManagement>(); }