Ejemplo n.º 1
0
 public void StartWave(WaveModel wave)
 {
     Debug.Log("Start Level");
     this.wave = wave;
     Init(wave);
     StartCoroutine(EnemyEmitter());
 }
Ejemplo n.º 2
0
        /*
         *  here have to be the
         *  button show wave editor
         */

        public void StartLevel()
        {
            Debug.Log("Start Level");
            for (int i = 0; i < Waves.Length; i++)
            {
                WaveModel      wave           = Waves[i];
                WaveController waveController = gameObject.AddComponent <WaveController>();
                if (wave.Previous.Length == 0)
                {
                    waveController.StartWave(wave);
                }
                else
                {
                    for (int k = 0; k < wave.Previous.Length; k++)
                    {
                        //var prev = wave.Previous[k];
                        //prev.
                    }
                }
            }
        }
Ejemplo n.º 3
0
 public void Init(WaveModel wave)
 {
     Debug.Log("Init");
     this.wave = wave;
 }