Комментарии:
Excellent Video! 👍
ОтветитьSorry for what I did.
Ответитьi mean u make cool but editing = 0
ОтветитьThanks man! I was going through a lot of tutorials and nothing worked. Until i clicked on this video.
Appreciated the help.
Again thanks man. You made my day a lot better.
:D
When i press escape in the game this pops up:"The variable pauseMenuUI of PauseMenu hat not been assigned." why??
This is my Code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PauseMenu : MonoBehaviour
{
public bool isPaused = false;
public GameObject pauseMenuUI;
void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
if(isPaused)
{
ResumeGame();
}
else
{
PauseGame();
}
}
}
public void PauseGame()
{
pauseMenuUI.SetActive(true);
Time.timeScale = 0f;
isPaused = true;
}
public void ResumeGame()
{
pauseMenuUI.SetActive(false);
Time.timeScale = 1f;
isPaused = false;
}
}
in my game, the camera is still moveing but the player is stoped, any fixes?
ОтветитьSorry for what i did.
ОтветитьNew here
ОтветитьAnother very cool tutorial this week Matt! True the pause menu is something that many of us commonly talk for granted these days, but it's really interesting to see how it's created & implemented in game like this. These videos are incredibly informative & enjoyable to watch each week bud, It'd definitely be great to see how to add more options to the menu too like a save game feature etc. Anyway, I gladly ReShared over on Twitter & dropped a big Like for ya here, cheers!! 😁👍
ОтветитьSomehow I am not following you on here! I use to be. Some little hands playing on my phone may have hit the red follow. I’m sorry. Fixing it now. Also shared this on my community post on here. Hope it helps. And retweeted.
ОтветитьI’m truly impressed. You did great.
I learn so much from you. Thank you for sharing and tagging me.