<commit_before>﻿using UnityEngine;
using System.Collections;
using System.Timers;

public class SpiderwebBehaviour : EnemyBasicBehaviour
{
		public GameObject Spider;
		public float SpawnTime;

		public Transform[] Spawns;

		private int counter;

		protected override void Start ()
		{
				counter = 0;
		}

		void FixedUpdate ()
		{
				counter++;
				if (counter / (1 / Time.fixedDeltaTime) >= SpawnTime) {
						spawn ();
				}
		}

		private void spawn ()
		{
				if (SpiderRoomBehaviour.Mobs.Count < NightmareRoomBehaviour.MAX_LIGHTMOBS_PER_SCENE) {
						print ("Webs: " + SpiderRoomBehaviour.Mobs.Count);
						Transform t_spawnPoint = Spawns.GetRandomTransform ();
						GameObject newSpider = GameObject.Instantiate (Spider, t_spawnPoint.position, Quaternion.identity) as GameObject;
						//SpiderRoomBehaviour.Mobs.Add(newSpider);
						newSpider.GetComponent<SpiderBehaviour> ().SetSpawn (t_spawnPoint);
				}
		}
}<commit_msg>- Fixed stuff<commit_after>﻿using UnityEngine;
using System.Collections;
using System.Timers;

public class SpiderwebBehaviour : EnemyBasicBehaviour
{
		public GameObject Spider;
		public float SpawnTime;

		public Transform[] Spawns;

		private int counter;

		protected override void Start ()
		{
				counter = 0;
		}

		void FixedUpdate ()
		{
				counter++;
				if (counter / (1 / Time.fixedDeltaTime) >= SpawnTime) {
						spawn ();
				}
		}

		private void spawn ()
		{
				if (SpiderRoomBehaviour.Mobs.Count < NightmareRoomBehaviour.MAX_LIGHTMOBS_PER_SCENE) {
						print ("Webs: " + SpiderRoomBehaviour.Mobs.Count);
						Transform t_spawnPoint = Spawns.GetRandomTransform ();
						GameObject newSpider = GameObject.Instantiate (Spider, t_spawnPoint.position, Quaternion.identity) as GameObject;
						SpiderRoomBehaviour.Mobs.Add(newSpider);
						newSpider.GetComponent<SpiderBehaviour> ().SetSpawn (t_spawnPoint);
				}
		}
}
{'fraction_non_alphanumeric': 0.10170394036208733, 'fraction_numerical': 0.002129925452609159, 'mean_word_length': 3.6975, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1788106', 'n_tokens_mistral': 767, 'n_tokens_neox': 605, 'n_words': 124}