public void RoomInitPhase(int frames) { cleanGenerator(); RoomGenerator roomGenerator = this.gameObject.AddComponent <RoomGenerator>(); roomGenerator.ApplyParams(this.RoomParams); roomGenerator.SetupGeneration(); _currentGenerator = roomGenerator; this.NextPhase(); }