dice csere, framerate

This commit is contained in:
2023-04-20 14:48:38 +02:00
parent a8b1605179
commit e63cb46c38
7 changed files with 36 additions and 92 deletions

View File

@@ -105,13 +105,13 @@ public class jatekmanager : MonoBehaviour
//hatterzene lejatszas
audioManager = FindObjectOfType<AudioManager>();
audioManager.Play("BackgroundMusic");
//audioManager.Play("BackgroundMusic");
UpdateGameState(GameState.Nev);
#if !UNITY_EDITOR
#if !UNITY_EDITOR
test.SetActive(false);
#endif
#endif
}
public void UpdateGameState(GameState newState)
@@ -271,10 +271,10 @@ public class jatekmanager : MonoBehaviour
public void NevValasztasUtan()
{
if (!nev.text.Equals(""))
if (!nev.text.Equals("") && dice.diceResult[0] == 0) //dice result == 0 ne tudjon tobbszori nev beiras utan ujradobni
{
UpdateGameState(GameState.KorKezdet);
//dice.CallRenderDice(true);
dice.CallRenderDice(true);
}
}