update
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user