wesleywh / EasyMultiplayer-Invector

Where to submit issues for "Easy Multiplayer - Invector" suite of packages that is available via GumRoad or the Unity Asset Store. GUMROAD: https://cyberbulletgames.gumroad.com/ ASSET STORE: https://assetstore.unity.com/publishers/34070
0 stars 0 forks source link

Pause menu would be beautiful as a new feature #13

Open AmmarTee opened 2 years ago

AmmarTee commented 2 years ago

This is a new request which is taking us decades to solve, Would be handy if we can have a prefab for the pause menu.

Features Requested:

  1. Pause Menu should open when the "ESC" key goes Up
  2. Player should unequip if holding any weapon (Optional)
  3. Player Movement and camera movement should be disabled
  4. If a player is moving in any direction i.e jumping sprinting walking or any other activity occurring such as shooting and stuff like that Idle animation should play while paused if possible
  5. Player should not be able to open the pause menu while doing any other activity i.e inventory, death, etc

Here are the codes:

[StopMoving is sitting on the player prefab] StopMoving.cs: https://pastebin.com/kB47f0uK

[Both scripts down below are sitting in the Main scene] PauseMenu.cs: https://pastebin.com/7d3WLKcp

EnableDisableObjectByKey.cs: https://pastebin.com/1JmUmf7N