Ejemplo n.º 1
0
 void Start()
 {
     if (LevelSpawner.GetCurrentLevel() == null)
     {
         LevelSpawner.SpawnNewLevel();
     }
     Upgrades.SetupUpgrades();
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void FixedUpdate()
 {
     if (willDealDamage && currentTarget != null)
     {
         //If dealing damage completes level
         if (currentTarget.DealDamage(damageToDealPerUpdate))
         {
             LevelSpawner.SpawnNewLevel();
         }
     }
 }