10th April 2022 – Working on the Inventory

In the gun script for when you pick it up, I have now made it so the prefab grabs the gun from the hierarchy and it now turns on and off when you select the button. However, this only works when the gun is turned on as when it’s turned off it can’t find the object.

In the inventory menu, I added Time.timeScale and set it to 0 when you open it as it will pause the game. I also made it so the camera freezes when it is in the inventory by disabling the camera script. Another thing I added was that when you click on the gun button, it will now not play the animation if you haven’t got it equipped and vice versa.

search previous next tag category expand menu location phone mail time cart zoom edit close