Exemple #1
0
 public void InstantiateNext(bool init = false)
 {
     _next = Instantiate(LevelGameObject.gameObject).GetComponent <Level>();
     levelNumber++;
     _next.name = "Level-" + levelNumber;
     _next.CreateCircles();
     _next.OnReduce += Reduce;
     if (init == true)
     {
         LifeTime--;
         return;
     }
     Reduce();
 }