This commit is contained in:
2023-04-14 20:21:47 +02:00
parent 84b31617d2
commit c51138a8cb
7 changed files with 286 additions and 93 deletions

View File

@@ -15,6 +15,11 @@ public class ControllerHandler : MonoBehaviour
Debug.Log("Controller connected");
for(int i = 0; i < controllers.Length; i++){
Debug.Log(controllers[i]);
//lock and disable mouse
//Cursor.lockState = CursorLockMode.locked;
//Cursor.visible = false;
//yield break;
}
}else if(connected && controllers.Length == 0){

View File

@@ -5,6 +5,7 @@ using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class jatekmanager : MonoBehaviour
{
@@ -143,6 +144,8 @@ public class jatekmanager : MonoBehaviour
Pause
}
//double click
public void Resume(){
pauseMenuUI.SetActive(false);
Time.timeScale = 1f; //normal ido visszainditasa
@@ -165,6 +168,24 @@ public class jatekmanager : MonoBehaviour
SceneManager.LoadScene("MainMenu");
}
public IEnumerator atlatszo(Button gomb)
{
while (gomb.GetComponent<CanvasGroup>().alpha > 0.25f)
{
gomb.GetComponent<CanvasGroup>().alpha -= 0.5f;
yield return new WaitForSecondsRealtime(0.01f);
}
}
public IEnumerator megjelen(Button gomb)
{
while (gomb.GetComponent<CanvasGroup>().alpha < 1f)
{
gomb.GetComponent<CanvasGroup>().alpha += 0.5f;
yield return new WaitForSecondsRealtime(0.01f);
}
}
private async void HandleKorkezdet()
{
rolldice.SetActive(true);