Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (!pause)
     {
         if (UnityEngine.SceneManagement.SceneManager.GetActiveScene().name == "inicial")
         {
             if (!jaIniciouHeroi)
             {
                 Spawn.Start();
                 SpawnItens.Start();
                 jaIniciouHeroi = true;
             }
             else
             {
                 Spawn.Update();
                 SpawnItens.Update();
             }
         }
         gCombo.Update();
         AtkE.Update();
     }
 }