/*************************************************************** SpaceGame - Space tower & ship defense game Copyright (c) 2012 'SaceGame Group'. All rights reserved. This source file is developed and maintained by: + Jeremy Bridon jbridon@cores2.com File: WaveManager.cs Desc: An delegate class responsible for handling enemy unit spawns and internal game state (wave #, etc.). ***************************************************************/ using UnityEngine; using System; using System.Collections; public class WaveManager : MonoBehaviour { // Spawn locations for enemies (absolute world coordinates) private Vector2[ ] SpawnPoints; // Mothership object private Unit Mothership; // Timer data (for creating a large number of objects) private float WaveTimer; public float WaveTimerInterval; // Current wave data public int WaveNumber; // Enum of all abilities public enum SpawnType Ship, Tower ; // Collection of ship frequencies (using the enum) private float[ ] Frequency; // Constructor: Source a set of spawn points public WaveManager(Vector2[ ] SpawnPoints) // Save an internal copy of our (class-owned) spawn points array this.SpawnPoints = SpawnPoints; // Mothership object: Set internally Mothership = null; // Timer data WaveTimer = 0.0f; WaveTimerInterval = 1.0f; // Wave data, start from wave 0 (instructions) WaveNumber = 0; // Handles the internal time updating for this object void Update() { // Mothership is not set if(Mothership == null) return; // Update our internal timer WaveTimer += Time.deltaTime; // Update the Mothership AI Mothership.Update(); // Wave 1-5 is active if(WaveNumber == 1 || WaveNumber == 2 || WaveNumber == 3 || WaveNumber == 4 || WaveNumber == 5) // Release a new ship (tank) every 1.0 seconds // (number depends on the wave) if(WaveTimer > WaveTimerInterval) // Reset timer WaveTimer = 0.0f; // Select a random point (we can set the ship numbers here Vector2 Point = SpawnPoints[UnityEngine.Random.Range(0.0f, 8.0f)]; // Create a ship at the random point Unit NewUnit = new Unit((int)Unit.UnitType.Ship, Point); // Set the mothership target unit Mothership.TransTarget = NewUnit; // Is the wave complete? if(Mothership.TransTarget == null) WaveNumber++; // Wave 6-7 is active if(WaveNumber == 6) { // Time to spawn a ship... if(WaveTimer > WaveTimerInterval) // Reset timer WaveTimer = 0.0f; // Select a random point (we can set the ship numbers here Vector2 Point = SpawnPoints[UnityEngine.Random.Range(0.0f, 8.0f)]; // Create a ship at the random point Unit NewUnit = new Unit((int)Unit.UnitType.Tower, Point); // Set the mothership target unit Mothership.TransTarget = NewUnit;
If you are searching about Kumpulan Ide Desain Motor Custom Japstyle TERBAIK dari Berbagai Tipe Motor you've visit to the right web. We have 35 Pics about Kumpulan Ide Desain Motor Custom Japstyle TERBAIK dari Berbagai Tipe Motor like Harga Motor Custom Japstyle Terbaru 2019 - Otomotif Djawanews.com, #kawasaki #w175 #custom | Kawasaki cafe racer, Scrambler motorcycle and also Kumpulan Ide Desain Motor Custom Japstyle TERBAIK dari Berbagai Tipe Motor. Read more:
Kumpulan Ide Desain Motor Custom Japstyle TERBAIK Dari Berbagai Tipe Motor
idreamly.blogspot.com japstyle ide
34+ Gambar Modifikasi Motor Megapro Custom Terbaru | Ottomono
discountjakksstarwars12191.blogspot.com modifikasi megapro kebayoran lama 2973 cipondoh cibodas dunia
50+ Motor Japstyle Yamaha Terbaru, Paling Keren!
mobilmotorexpo.blogspot.com japstyle bratstyle byson modifikasi scorpio modif jap bobber klasik dijual jogja biaya bengkel jogjakarta darto kalo apalagi otomaniac terbaik otomotif
Inspirasi Modifikasi Motor Custom Japstyle Traker | Pembalap, Kuda, Motor
www.pinterest.com w175 japstyle modifikasi ubahan ragam bukalapak sumber kustomgaras
Terjual Motor Custom Japstyle | KASKUS
fjb.kaskus.co.id japstyle jap beli
Kumpulan Ide Desain Motor Custom Japstyle TERBAIK Dari Berbagai Tipe Motor
idreamly.blogspot.com japstyle tipe ide jap
#kawasaki #w175 #custom | Kawasaki Cafe Racer, Scrambler Motorcycle
www.pinterest.ca w175 modifikasi scrambler modif motocicletas chopper disimpan
Gambar Dan Harga Motor Custom Japstyle Terbaru Dipasaran |KISAH MOTOR
www.kisahmotor.com japstyle dipasaran
Harga Motor Custom Japstyle Terbaru 2019 - Otomotif Djawanews.com
djawanews.com Kumpulan Ide Desain Motor Custom Japstyle TERBAIK Dari Berbagai Tipe Motor
idreamly.blogspot.com japstyle scorpion
32+ Contoh Modifikasi Motor Custom Bobber Terbaru | Ottomono
discountjakksstarwars12191.blogspot.com japstyle modifikasi terbaru bengkel
Jap Style By Deus Customs | JAP STYLE - BRAT STYLE - CAFE RACER
the-jap-style.blogspot.com jap style deus customs japstyle pup custom drover
Kumpulan Ide Desain Motor Custom Japstyle TERBAIK Dari Berbagai Tipe Motor
idreamly.blogspot.com yamaha japstyle ide scrambler racer cafe
Gambar Dan Harga Motor Custom Japstyle Terbaru Dipasaran |KISAH MOTOR
www.kisahmotor.com japstyle jap dipasaran
Gambar Dan Harga Motor Custom Japstyle Terbaru Dipasaran |KISAH MOTOR
www.kisahmotor.com japstyle dipasaran
Gambar Dan Harga Motor Custom Japstyle Terbaru Dipasaran |KISAH MOTOR
www.kisahmotor.com japstyle dipasaran terbaru
Gambar Dan Harga Motor Custom Japstyle Terbaru Dipasaran |KISAH MOTOR
www.kisahmotor.com japstyle dipasaran murah
Tiga Jenis Motor Custom Retro Klasik Yang Sering Dijumpai
aufaproject46.com japstyle gl modifikasi scrambler modif 2000 racer pulsar klasik jap sering bobber bajaj cb150r dijumpai chopper tiga banget aufaproject46 ns
Tangki Motor Custom Japstyle | Customotto
customotto.blogspot.com japstyle tangki kustomgaras inspirasi
Harga Custom Motor Japstyle | Customotto
customotto.blogspot.com japstyle semangat paket lapak jual bukalapak
Jual Motor Custom Murah Di Jakarta Selatan | 0877-8810-0016 ~ BJ GARAGE
bjmotorvintagecustom.blogspot.com selatan modifikasi japs larangan pinang alhasil pun
100 Gambar Motor Japstyle Terlengkap | Gubuk Modifikasi
gubukmodifikasi.blogspot.com modifikasi japstyle jap thunder modif tangki kustom koleksi cb100 inspirasi thecitycyclist cb150r prewedding obeng grup daerah jadul knalpot japs klasik
Kumpulan Ide Desain Motor Custom Japstyle TERBAIK Dari Berbagai Tipe Motor
idreamly.blogspot.com japstyle
34+ Gambar Modifikasi Motor Megapro Custom Terbaru | Ottomono
discountjakksstarwars12191.blogspot.com tangerang kota budi setia ciledug modifikasi megapro 2973 japstyle biaya
Kumpulan Ide Desain Motor Custom Japstyle TERBAIK Dari Berbagai Tipe Motor
idreamly.blogspot.com japstyle desain sz16 papan
Pin Di MOTO BIKE
www.pinterest.jp japstyle modifikasi sepeda kustomgaras inspirasi gridoto tauco modif simpel ubah jadi kendaraan kreativitas jurus bengkel bertahan jitu pandemi scrambler kurniawan
Gambar Dan Harga Motor Custom Japstyle Terbaru Dipasaran |KISAH MOTOR
www.kisahmotor.com japstyle dipasaran
Kumpulan Ide Desain Motor Custom Japstyle TERBAIK Dari Berbagai Tipe Motor
idreamly.blogspot.com japstyle berbagai scorpio
Kumpulan Ide Desain Motor Custom Japstyle TERBAIK Dari Berbagai Tipe Motor
idreamly.blogspot.com japstyle
Ban Motor Custom Japstyle | Customotto
customotto.blogspot.com japstyle caferacer
Gambar Dan Harga Motor Custom Japstyle Terbaru Dipasaran |KISAH MOTOR
www.kisahmotor.com japstyle gambar
Kumpulan Ide Desain Motor Custom Japstyle TERBAIK Dari Berbagai Tipe Motor
idreamly.blogspot.com motor japstyle
Gambar Dan Harga Motor Custom Japstyle Terbaru Dipasaran |KISAH MOTOR
www.kisahmotor.com japstyle harga
28+ Populer Modifikasi Motor Byson Japstyle Tahun Ini | Ottomono
discountjakksstarwars12191.blogspot.com modifikasi japstyle byson traker populer sepeda
Gambar Dan Harga Motor Custom Japstyle Terbaru Dipasaran |KISAH MOTOR
www.kisahmotor.com japstyle dipasaran harga
50+ motor japstyle yamaha terbaru, paling keren!. Harga custom motor japstyle. Japstyle dipasaran murah